|
DigiPara Liftdesigner LDX API
|
API method: ILDXMachineRoom5.MergeEx
Treename: Shaft0.MachineryRoom.
' from Samples/Src/LDXAPIExamples/Example_LDXMachineRoom.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.MachineryRoom.", "LDXMachineRoom~MergeEx", "Merge with custom other machine room")>
Public Shared Sub ArbitraryMerge(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft4.MachineryRoom.") Is Nothing Then
MsgBox("Machine room not found! Please reload the relevant .ld3 file!")
Exit Sub
End If
'merge first and third machine rooms
With DirectCast(ldxDocument.GetLDXObject("Shaft2.MachineryRoom.").LDXType, DigiPara.LDX.LDXMachineRoom)
.MergeEx(True, 0)
End With
' merge fifth machine room with the two above
With DirectCast(ldxDocument.GetLDXObject("Shaft4.MachineryRoom.").LDXType, DigiPara.LDX.LDXMachineRoom)
.MergeEx(True, 2)
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft3.MachineryRoom.").LDXType, DigiPara.LDX.LDXMachineRoom)
.MergeEx(True, 1)
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft5.MachineryRoom.").LDXType, DigiPara.LDX.LDXMachineRoom)
.MergeEx(True, 3)
End With
End Sub