DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change beam widths of a scaffolding

API method: ILDXScaffolding5.MP_MODE

Treename: Shaft0.AssemblyPlatformList.Platform3.PlankList0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldingBoard.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList0.", "LDXScaffolding~MP_MODE", "Change beam widths of a scaffolding")>
    Public Shared Sub ChangeBeamWidthsOfAScaffolding(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)
            If MsgBox("Change all beams widths in top scaffolding? If not only the first beam width in top scaffolding will be changed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
                ' Change only 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
                ' Change width
                .DY = 222
                ' Make the same change in other beams
                .Object.GetDim("DY").Calculate()
            Else
                ' Change width
                .DY = 444
            End If
        End With

    End Sub