|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarBalustrade5.PROFILEWIDTH
Treename: Shaft0.Car.Balustrade.
' from Samples/Src/LDXAPIExamples/Example_LDXCarBalustrade.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Balustrade.", "LDXCarBalustrade~PROFILEWIDTH", "Change properties")>
Public Shared Sub ChangeProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Balustrade.") Is Nothing Then
MsgBox("Car balustrade not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
Dim ldxCarBalustrade As DigiPara.LDX.LDXCarBalustrade = ldxDocument.Shafts(0).Car.CarBalustrade
With ldxCarBalustrade
' Profile width
.PROFILEWIDTH = 66
' Enable on all 4 sides
.BalustradeMode = .BalustradeMode Or DigiPara.LDX.CarBalustradeModes.cbmLeft Or DigiPara.LDX.CarBalustradeModes.cbmRight Or
DigiPara.LDX.CarBalustradeModes.cbmFront Or DigiPara.LDX.CarBalustradeModes.cbmRear
' Change height (calculated from the car top)
.SetDZ(DigiPara.LDX.WallType.wtFront, .GetDZ(DigiPara.LDX.WallType.wtFront) + 111)
.SetDZ(DigiPara.LDX.WallType.wtLeft, .GetDZ(DigiPara.LDX.WallType.wtLeft) + 111)
.SetDZ(DigiPara.LDX.WallType.wtRear, .GetDZ(DigiPara.LDX.WallType.wtRear) + 111)
.SetDZ(DigiPara.LDX.WallType.wtRight, .GetDZ(DigiPara.LDX.WallType.wtRight) + 111)
' Inward displacement from right car wall
.SetDIST(DigiPara.LDX.WallType.wtRight, 0)
End With
End Sub