|
DigiPara Liftdesigner LDX API
|
API method: ILDXShaft5.MachineRoom
' from Samples/Src/LDXAPIExamples/Example_GroupsConfiguration.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXShaft~MachineRoom", "Change machine room wall material of first shaft")>
Public Shared Sub ChangeMachineRoomWallMaterialOfFirstShaft(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.MachineryRoom.") Is Nothing Then
MsgBox("Machine room not found")
Exit Sub
End If
With ldxDocument.Shafts(0).MachineRoom.Room
If MsgBox("Change all machine room wall material of the first shaft? If not only the front machine room wall material of the first shaft will be changed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmFrontLeft, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmLeft, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmRearLeft, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmRear, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmRearRight, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmRight, DigiPara.LDX.ShaftMaterial.smClassic)
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmFrontRight, DigiPara.LDX.ShaftMaterial.smClassic)
End If
.SetWallMaterial(DigiPara.LDX.WallTypeForMaterial.wtfmFront, DigiPara.LDX.ShaftMaterial.smClassic)
End With
End Sub