DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Enable anchor rail's concrete beam

API method: ILDXLandingDoorFixingPoints5.AnchorRail

Treename: Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.AnchorRail0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXLandingDoorFixingPoints.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.AnchorRail0.", "LDXLandingDoorFixingPoints~AnchorRail", "Enable anchor rail's concrete beam")>
    Public Shared Sub EnableAnchorRailConcreteBeam(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.AnchorRail0.") Is Nothing Then
            MsgBox("Anchor rail not found")
            Exit Sub
        End If

        Dim ldxLandingDoorFixingPoints As DigiPara.LDX.LDXLandingDoorFixingPoints = DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E0.ShaftDoor.DoorFixingPointList0.").LDXType, DigiPara.LDX.LDXLandingDoorFixingPoints)
        Dim ldxAnchorRail As DigiPara.LDX.LDXAnchorRail = ldxLandingDoorFixingPoints.AnchorRail
        With ldxAnchorRail
            ' Enable contrete beam 
            .AR_MODE = .AR_MODE Or DigiPara.LDX.AnchorRailModes.armConcreteBeam
            ldxDocument.CalculateModel(DigiPara.LDX.CalculateModelModes.rcmCalcAndReport Or DigiPara.LDX.CalculateModelModes.rcmFireCalculatedEvent)
            ' Enable concrete beam size manual editing
            .AR_MODE = .AR_MODE Or DigiPara.LDX.AnchorRailModes.armConcreteBeamManualSize
            ' Get wall segment
            If .Comp Is Nothing Or .Comp.WallSegments Is Nothing Or .Comp.WallSegments.Count = 0 Then
                MsgBox("Wall segments not found. Please reload the .ld3 file.")
                Exit Sub
            End If
            ' Show concrete beam
            .Comp.WallSegments(0).WallSegmentMode = DigiPara.LDX.WallSegmentModes.wsmExpose Or DigiPara.LDX.WallSegmentModes.wsmHatchAll
            ' Change height of concrete beam
            .CONCRETE_BEAM_DZ = 444
            ' Length of the concrete beam from the center of the shaft to the left
            .CONCRETE_BEAM_DX_LEFT = 500
            ' Length of the concrete beam from the center of the shaft to the right
            .CONCRETE_BEAM_DX_RIGHT = 770
            ' Concrete beam material
            .CONCRETE_BEAM.ALTERNATIVE_MATERIAL = DigiPara.LDX.ShaftMaterial.smFloorFinish
        End With
    End Sub