|
DigiPara Liftdesigner LDX API
|
API method: ILDXDocument5.SetValue
Treename: Shaft0.Ladder.
' from Samples/Src/LDXAPIExamples/Example_LDXLadder.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Ladder.", "LDXDocument~SetValue", "Change ladder position")>
Public Shared Sub ChangePosition(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetObject("Shaft0.Ladder.") Is Nothing Then
MsgBox("Ladder not found!")
Exit Sub
End If
Dim shaft As DigiPara.LDX.LDXShaft = ldxDocument.Shafts(0)
With shaft.Ladder
.POS = .POS * 7 Mod (shaft.Room.DEPTH - 400) + 200
End With
EnsureLadderViews(ldxDocument)
End Sub