Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
m_baczewski
in reply to: Daan_M

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

m_baczewski_0-1697784600630.pngm_baczewski_1-1697784605701.pngm_baczewski_2-1697784609372.png