The Create Distance Mate generation task will create a distance mate, in an assembly, between reference planes in each component.
|(Name)||The unique name for this task.||Create Distance Mate|
|Aligned||The alignment type (True = Aligned, False = Anti-Aligned).||TRUE|
|Distance||The distance between the two planes (in model units).||200|
|Flip||Flip the distance (TRUE = Flipped, FALSE = Not Flipped). The default is FALSE.||FALSE|
|First Plane||The name of the first reference mating plane.||"Plane1@Part1 " & DWSpecification & "-1"|
|Second Plane||The name of the second reference mating plane.||"Right Plane@Part2 " & DWSpecification & "-1"|
When building the rule for the plane names, they must reference the generated file name and not the master. The rule must be built in the form: [Plane Name]@[Generated model name]-[Instance number]
If the plane is in the top level assembly, only the plane name is required.
The rule must include the instance number, even if there is only one instance of the component in the assembly.
Mating planes can only be one level deep. For example, the rule: [Plane Name]@[Generated model name]@[Generated sub assembly name] would not be valid.
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.