DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Add beams to scaffoldings

API method: ILDXScaffoldingBoards5.Count

Treename: Shaft0.AssemblyPlatformList.Platform3.PlankList2.

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffolding.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList2.", "LDXScaffoldingBoards~Count", "Add beams to scaffoldings")>
    Public Shared Sub AddBeamsToScaffoldings(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.Platform3.PlankList2.") 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.").LDXType, DigiPara.LDX.LDXScaffoldingBoards)
            ' Manually calculate scaffolding board number
            .Mode = .Mode And Not DigiPara.LDX.ScaffoldingBoardsModes.scbmNumberAutomatically
            ' Change scaffolding board count
            .Count = 4
        End With

        ' Make the same change in other scaffoldings
        DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.").LDXType, DigiPara.LDX.LDXScaffoldings).Copy(DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform0.").LDXType, DigiPara.LDX.LDXScaffolding))

    End Sub