|
DigiPara Liftdesigner LDX API
|
API method: ILDXShaft5.PitDoor
Treename: Shaft0.Door.
' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Door.", "LDXShaft~PitDoor", "Change pit door properties")>
Public Shared Sub ChangePitDoorProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Door.") Is Nothing Then
MsgBox("Pit door in shaft not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
Dim ldxMachineRoomDoor As DigiPara.LDX.LDXMachineRoomDoor = ldxDocument.Shafts(0).PitDoor
' Enable pit door and set manufacturer
ldxMachineRoomDoor.Comp.ChangePartRID64(1, 0)
' Change surface color
ldxMachineRoomDoor.Comp.VisualMaterial.PGOGL_RID64 = 11000
' Change height
ldxMachineRoomDoor.Height = 2222
' Change width
ldxMachineRoomDoor.Width = 1111
' Change elevation
ldxMachineRoomDoor.DZ0 = 333
End Sub