|
DigiPara Liftdesigner LDX API
|
API method: ILDXRefugeSpace5.DX
Treename: Shaft0.MachineryRoom.SGC0.RefugeSpace.
' from Samples/Src/LDXAPIExamples/Example_LDXRefugeSpace.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.MachineryRoom.SGC0.RefugeSpace.", "LDXRefugeSpace~DX", "Change refuge space properties")>
Public Shared Sub ChangeRefugeSpaceProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.MachineryRoom.SGC0.RefugeSpace.") Is Nothing Then
MsgBox("Desired refuge space in machine room not found! Please reload the relevant .ld3 file!")
Exit Sub
End If
' Do not sync refuge space's height and width with the switchboard
Dim ldxSwitchBoard As DigiPara.LDX.LDXSwitchBoard = ldxDocument.Shafts(0).MachineRoom.GetSwitchBoard(0)
ldxSwitchBoard.PANEL_MODE = ldxSwitchBoard.PANEL_MODE And Not DigiPara.LDX.SwitchBoardModes.sbmRefugeDxAuto
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.SGC0.RefugeSpace.").LDXType, DigiPara.LDX.LDXRefugeSpace)
' Change color
.Comp.VisualMaterial.PGOGL_RID64 = 11000
' Width
.DX = 555
' Depth
.DY = 444
' Height
.DZ = 2222
' Sideways displacement from the switchboard's wall
.X0 = 22.5
' Inward displacement from the switchboard's wall
.Y0 = 111
' Upward displacement from the machine room floor
.Z0 = -111
End With
End Sub