10-19-2023
11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-19-2023
11:51 PM
Yes, it's possible. You need to define the type and alignment of the iMate on the gearbox and the torque arm and update those constraints as needed:
Dim componentA = Components.Add("CZ11", "Your\Path\CZ11.ipt") Dim oDoc As AssemblyDocument oDoc = ThisApplication.ActiveDocument Dim constrains As AssemblyConstraints constrains = oDoc.ComponentDefinition.Constraints For Each constrain In constrains constrain.Delete Next Select Case SIDE Case = "LEFT" Constraints.AddByiMates("Left1", "CZ10", "W1", "CZ11", "W1") Constraints.AddByiMates("Left2", "CZ10", "W2", "CZ11", "W2") Case = "RIGHT" Constraints.AddByiMates("Right1", "CZ10", "W3", "CZ11", "W3") Constraints.AddByiMates("Right2", "CZ10", "W4", "CZ11", "W4") End Select