MyDriveWorks - Tech Tips
This Project demonstrates how to insert and mate a component using Generation Tasks and how to use looping to insert multiple components.
The Create Angle Mate Generation task will create an Angle Mate, in an Assembly, between two planes or named faces.
File Names used in Mate References
We strongly recommend that File Names of components being mated do not contain a . (dot).
For example:
Bracket.LeftHand
If this cannot be avoided ensure the Windows Explorer setting to show File name extensions is applied on each machine that generates models.
Please see Info: SOLIDWORKS System Options - Windows File Explorer for more information.
| Property Name | Description |
|---|---|
| (Name) | The unique name for this task. |
| Aligned | The alignment type. TRUE to Align, FALSE to Anti-Align |
| Angle | The angle of the mate to create. |
| Entity One Name | The name of the first entity to mate. |
| Entity One Type | The type of the first entity to mate.
This is either Plane or NamedFace. See Naming A Face for instructions on naming a face in SOLIDWORKS. |
| Entity Two Name | The name of the second entity to mate. |
| Entity Two Type | The type of the second entity to mate.
This is either Plane or NamedFace. See Naming A Face for instructions on naming a face in SOLIDWORKS. |
| Flip Dimension | TRUE to flip the dimension, FALSE to not flip the dimension. The default is FALSE. |
When this Generation task is added the properties are static by default. See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
| Property Name | Example Rule | Meaning |
|---|---|---|
| Aligned | FALSE | The Alignment type. TRUE for Aligned and FALSE for Anti-Aligned.
For more information about Mate Alignment see Mate Alignment in the SOLIDWORKS Help file. |
| Angle | 60 | The angle (in degrees) of the Mate. |
| Entity One Name | "MountFace@HingeL " &DWSpecification&"-1" | Will use MountFace that exists in the generated component HingeL MyProject 9999 with the instance number -1.
To reference an entity in a component that is multiple levels deep see Referencing Faces and Planes. |
| Entity One Type | NamedFace | The type of the first entity to mate. |
| Entity Two Name | "Plane3@HingeR " &DWSpecification&"-1" | Will use Plane3 that exists in the generated component HingeR MyProject 9999 with the instance number -1.
To reference an entity in a component that is multiple levels deep see Referencing Faces and Planes. |
| Entity Two Type | Plane | The type of the Second entity to Mate. |
| Flip Direction | FALSE | FALSE will not flip the direction of the dimension. TRUE would flip the direction of the dimension. |
This Task can be added to the following Generation Sequence(s):
The following Generation Tasks are available to create other mate types:
The following topic shows how to create Named Faces and gives information on how references are structured for entities of varying levels of depth.
This Project demonstrates how to insert and mate a component using Generation Tasks and how to use looping to insert multiple components.
View all available MyDriveWorks Tech Tips.