|
DigiPara Liftdesigner LDX API
|
API method: ILDXCWFrame5.CarMode
Treename: Shaft0.CW.Weight.
' from Samples/Src/LDXAPIExamples/Example_LDXCWFrame.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.CW.Weight.", "LDXCWFrame~CarMode", "[0209] Change position in shaft")>
Public Shared Sub ChangePositionInShaft(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.CW.Weight.") Is Nothing Then
MsgBox("Counterweight frame not found")
Exit Sub
End If
' Predefined locations
ldxDocument.Shafts(0).CWConsole.CWFrame.CarMode = DigiPara.LDX.CarModes.carmPositionTop
End Sub