|
DigiPara Liftdesigner LDX API
|
API method: ILDXShaft5.RopeCompensation
Treename: Shaft0.RopeCompensationUnit.
' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.RopeCompensationUnit.", "LDXShaft~RopeCompensation", "Enable a rope compensation unit and set manufacturer")>
Public Shared Sub EnableARopeCompensationUnitAndSetManufacturer(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.RopeCompensationUnit.") Is Nothing Then
MsgBox("Desired rope compensation unit not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
' Enable and change manufacturer
ldxDocument.Shafts(0).RopeCompensation(0).Comp.ChangePartRID64(1, 0)
End Sub