DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change all beam widths of scaffoldings

API method: ILDXScaffoldingBoard5.DY

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~DY", "Change all beam widths of scaffoldings")>
    Public Shared Sub ChangeAllBeamWidthsOfScaffoldings(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.Platform0.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.Platform0.PlankList0.Plank0.").LDXType, DigiPara.LDX.LDXScaffoldingBoard)
            ' Change width
            .DY = 222
            ' Make the same change in other scaffoldings
            .Object.GetDim("DY").Calculate()
        End With

    End Sub