DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change beam properties

API method: ILDXScaffoldingBoard5.DX

Treename: Shaft0.AssemblyPlatformList.Platform3.PlankList0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldingBoard.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList0.", "LDXScaffoldingBoard~DX", "Change beam properties")>
    Public Shared Sub ChangeBeamProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.") Is Nothing Then
            MsgBox("Desired scaffolding boards not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.").LDXType, DigiPara.LDX.LDXScaffoldingBoard)
            ' Make changes only to the top scaffolding
            With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.").LDXType, DigiPara.LDX.LDXScaffolding)
                .MP_MODE = .MP_MODE Or DigiPara.LDX.ScaffoldingModes.ScfmThisBoardIsDifferent
            End With
            ' Make changes manually
            With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.").LDXType, DigiPara.LDX.LDXScaffoldingBoards)
                .Mode = .Mode And Not DigiPara.LDX.ScaffoldingBoardsModes.scbmArrangeAutomatically
            End With
            ' Change length
            .DX = 2222
            ' Change height
            .DZ = 333
            ' Space between the left wall and the scaffolding board
            .X0 = 222
            ' Horizontal displacement of the scaffolding board from its scaffolding
            .CLR = 111
            ' Elevation from the floor level
            .AR_DZ = -222
            ' Make the same change in other beams
            .Object.GetDim("DX").Calculate()
            .Object.GetDim("DZ").Calculate()
            .Object.GetDim("X0").Calculate()
            .Object.GetDim("CLR").Calculate()
            .Object.GetDim("AR_DZ").Calculate()
        End With
        ' Show top scaffolding
        With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.").LDXType, DigiPara.LDX.LDXSheetFrame)
            .VisibleProductGroups = .VisibleProductGroups Or DigiPara.LDX.SheetFrameProductGroups.shfpScaffolding
            .SCAFFOLDING_IX = 3
        End With

    End Sub