|
DigiPara Liftdesigner LDX API
|
API method: ILDXRailBracket5.Object
Treename: Shaft0.CW.BracketList.Bracket5.
2 code examples follow.
' from Samples/Src/LDXAPIExamples/Example_LDXRailBracket.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.CW.BracketList.Bracket5.", "LDXRailBracket~Object", "Change distance to previous counter weight rail bracket")>
Public Shared Sub ChangeDistanceToPreviousCounterWeightRailBracket(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.CW.BracketList.Bracket5.") Is Nothing Then
MsgBox("Desired counter weight rail bracket was not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With ldxDocument.Shafts(0).CWConsole.Console.RailBrackets.Item(5).Object
' Distance to pit / previous bracket
.SetValue("DIST", 2000)
.GetDim("DIST").Calculate()
End With
End Sub
' from Samples/Src/LDXAPIExamples/Example_LDXRailBracket.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.RailBracket4.BracketList.Bracket5.", "LDXRailBracket~Object", "Change distance to previous car rail bracket")>
Public Shared Sub ChangeDistanceToPreviousCarRailBracket(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.RailBracket4.BracketList.Bracket5.") Is Nothing Then
MsgBox("Desired car rail bracket was not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With ldxDocument.Shafts(0).Console(DigiPara.LDX.WallType.wtRight).RailBrackets.Item(5).Object
' Distance to pit / previous bracket
.SetValue("DIST", 2000)
.GetDim("DIST").Calculate()
End With
End Sub