|
DigiPara Liftdesigner LDX API
|
API method: ILDXLandingDoorFixingPoint5.AnchorRail
Treename: Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.
' from Samples/Src/LDXAPIExamples/Example_LDXLandingDoorFixingPoints.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.", "LDXLandingDoorFixingPoint~AnchorRail", "Add anchor rail for each fixing point")>
Public Shared Sub AddAnchorRailForEachFixingPoint(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.DoorFixingPoint0.AnchorRail0.") Is Nothing Then
MsgBox("Anchor rail not found!")
Exit Sub
End If
For Each ldxLandingDoorFixingPoint As DigiPara.LDX.LDXLandingDoorFixingPoint In DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.").LDXType, DigiPara.LDX.LDXLandingDoorFixingPoints)
' Enable anchor rail
ldxLandingDoorFixingPoint.DFP_MODE = ldxLandingDoorFixingPoint.DFP_MODE Or DigiPara.LDX.LandingDoorFixingPointModes.ldfpmAnchorRail
' Set side ways displacement from the center of the door
ldxLandingDoorFixingPoint.DX = If(ldxLandingDoorFixingPoint.Comp.IX = 0, -333, 290)
' Set upwards displacement from the top of the door
ldxLandingDoorFixingPoint.DZ = 111
' Set side ways displacement from the top of anchor rails
ldxLandingDoorFixingPoint.P2_DELTA_DX = 55
With ldxLandingDoorFixingPoint.AnchorRail
' Change anchor rail
.Comp.ChangePartRID64(1347, 0)
' Do not use tandard lengths and do not auto calculate lengths of anchor rails
.AR_MODE = .AR_MODE And Not (DigiPara.LDX.AnchorRailModes.armStandardLength Or DigiPara.LDX.AnchorRailModes.armAutoCalcLen)
' Change anchor rail length
.Length = 444
End With
Next
End Sub