The Create Concentric Mate Generation Task will create a Concentric Mate, in an Assembly, between two Components using a named Face in a Model or an Axis.
This Generation Task does require named faces to exist in the models being mated. Edges or planes cannot be used.
See How to Name and Write Rules for a Face or Plane in a SOLIDWORKS Part for more information about Naming and Writing Rules.
|(Name)||The unique name for this task.|
|Aligned||The alignment type (TRUE = Aligned, FALSE = Anti-Aligned)|
|Lock Rotation||Locks the rotation (TRUE = Locked, FALSE = Not Locked). The default is FALSE|
|Position Only||Does not apply the mate (TRUE = Position Only, FALSE = Apply Mate). The default is FALSE|
|First Reference||The name of the first reference mating face or axis|
|First Reference Type||The type of the first reference (Axis, Named Face)|
|Second Reference||The name of the second reference mating face or axis|
|Second Reference Type||The type of the second reference (Axis, Named Face)|
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||Example Result||Meaning|
|Aligned||TRUE||TRUE||TRUE set Alignment type to Aligned. FALSE would set this to Anti-Aligned.|
|Lock Rotation||TRUE||TRUE||TRUE will Lock the Rotations not allowing the Component to rotate. FALSE will allow the Component to rotate.|
|Position Only||FALSE||FALSE||FALSE will apply the Mate. Making this property TRUE will just place the Components but will not Mate them.|
|First Reference||"RunningFace@Axle " &DWSpecificationId&"-1"||RunningFace@Axle 9999-1||The Name of the first reference Mating Face or Axis.|
|First Reference Type||Named Face||Named Face||Named Face is the type of reference. Choice of Named Face or Axis.|
|Second Reference||"CentralAxis@Bracket " &DWSpecificationId&"-1"||CentralAxis@Bracket 9999-1||The Name of the second reference Mating Face or Axis.|
|Second Reference Type||Axis||Axis||Axis is the type of reference. Choice of Named Face or Axis.|
When building the rule for the Face or Axis Names, they must reference the generated file name and not the master. The rule must be built in the form: [Face Name]@[Generated model name]-[Instance number].
If the Face or Axis is in the top level assembly, only the Face or Axis name is required.
The rule must include the instance number, even if there is only one instance of the component in the assembly.
Face or Axis Names can be multiple levels deep. For example, the rule:
[Face or Axis Name]@[Generated model name]-[Instance number]@[Generated sub sub assembly name]@[Generated sub assembly name] would be valid.
To determine the exact address of the Mate Selections:
Manually mate the same entities in SOLIDWORKS and note the addresses given in the Mate Selections window.
When filling out the Entity Names it is important to remember to add a space after the end of your model name before your quote otherwise the task will not work. For example "Part "&DWSpecificationId .
For more information about Mate Alignment see Mate Alignment in the SOLIDWORKS Help file.
DriveWorks Tech Tips Portal
Insert Component Generation Task
This project demonstrates how to insert and define a component using Generation Tasks, and also how to use Looping to insert multiple components.