|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarWall5.GapLeft
Treename: Shaft0.Car.Design.Wall2.Panel0.
' from Samples/Src/LDXAPIExamples/Example_LDXCarWall.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Wall2.Panel0.", "LDXCarWall~GapLeft", "Change the space on the left and right of a car wall")>
Public Shared Sub AirGap(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.") Is Nothing Then
MsgBox("Desired car wall not found! Please Reload the relevant .ld3 file.")
Exit Sub
End If
Dim ldxCarWall As DigiPara.LDX.LDXCarWall = DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.").LDXType, DigiPara.LDX.LDXCarWall)
If ldxCarWall.GapLeft < 100 Then
' the air gap leaves panel-less spaces on the left and right
ldxCarWall.GapLeft = 200
ldxCarWall.GapRight = 200
Else
ldxCarWall.GapLeft = 0
ldxCarWall.GapRight = 0
End If
End Sub