|
DigiPara Liftdesigner LDX API
|
API method: ILDXConnectionPoints5.ConnectCompName1
Treename: Shaft0.MachineryRoom.Components.DuctCanal0.
' from Samples/Src/LDXAPIExamples/Example_LDXConnectionPoints.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.MachineryRoom.Components.DuctCanal0.", "LDXConnectionPoints~ConnectCompName1", "Change ends")>
Public Shared Sub ChangeEnds(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.") Is Nothing Then
MsgBox("Connection points not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.").LDXType, DigiPara.LDX.LDXConnectionPoints)
.ConnectCompName1 = "Shaft0.MachineryRoom.PowerReceivingBox."
.ConnectCompName2 = "Shaft0.MachineryRoom.SGC0."
.InsertAt(2)
.InsertAt(3)
.InsertAt(4)
.InsertAt(5)
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.Delta4.").LDXType, DigiPara.LDX.LDXConnectionPoint)
.DX = 0
.DY = -50
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.Delta3.").LDXType, DigiPara.LDX.LDXConnectionPoint)
.DX = -350
.DY = 0
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.Delta2.").LDXType, DigiPara.LDX.LDXConnectionPoint)
.DX = 0
.DY = 500
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft0.MachineryRoom.Components.DuctCanal0.Delta1.").LDXType, DigiPara.LDX.LDXConnectionPoint)
.DX = -240
.DY = 0
End With
End Sub