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 Distance Mate Generation Task will create a Distance Mate, in an Assembly, between Planes in each Component.
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 = Aligned, False = Anti-Aligned). |
| Distance | The distance between the two planes (in model units). |
| Flip | Flip the distance (TRUE = Flipped, FALSE = Not Flipped). The default is FALSE. |
| First Plane | The name of the first reference mating plane. |
| Second Plane | The name of the second reference mating plane. |
When this Generation task is added the properties are both static and dynamic 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. |
| Distance | 200 | The distance between the two Mating Planes in Model Units |
| Flip | FALSE | Flip the distance (TRUE = Flipped, FALSE = Not Flipped). The default is FALSE. |
| First Plane | "Right Plane@Bracket " &DWSpecification&"-1" | Will use Right Plane that exists in the generated component Bracket MyProject 9999 with the instance number -1.
To reference an entity in a component that is multiple levels deep see Referencing Faces and Planes. |
| Second Plane | "Plane2@Rib " &DWSpecification&"-1" | Will use Plane2 that exists in the generated component Rib MyProject 9999 with the instance number -1.
To reference an entity in a component that is multiple levels deep see Referencing Faces and Planes. |
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.