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 Profile Center Mate Generation Task will create a Profile Center Mate, in an Assembly, between named faces 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 faces (in model units). |
| Flip | Flip the distance (TRUE = Flipped, FALSE = Not Flipped). The default is FALSE. |
| Lock Rotation | Only applies to circular faces (TRUE = Locked, FALSE = Not Locked). The default is FALSE. |
| First Face | The name of the first reference mating face.
See Naming A Face for instructions on naming a face in SOLIDWORKS. |
| Second Face | The name of the second reference mating face.
See Naming A Face for instructions on naming a face in SOLIDWORKS. |
When this 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 | FALSE will mean the mate type is Anti-Aligned. TRUE would make the mate Aligned.
For more information about Mate Alignment see Mate Alignment in the SOLIDWORKS Help file. |
| Distance | 0 | This is the Distance between the two mating Faces. This is measured in the Model units. |
| Flip | TRUE | This will flip the direction in which the dimension value will be enacted. |
| Lock Rotation | TRUE | TRUE will Lock the Rotation of Cylindrical parts that are inserted with the mate. |
| First Face | "BaseMountingFace@Base " &DWSpecification&"-1" | Will use BaseMountingFace that exists in the generated component Base 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 Face | "CoverFace@Cover " &DWSpecification&"-1" | Will use CoverFace that exists in the generated component Cover 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.