DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change plank heights

API method: ILDXScaffoldings5.SetDZ

Treename: Shaft0.AssemblyPlatformList.

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldings.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.", "LDXScaffoldings~SetDZ", "Change plank heights")>
    Public Shared Sub ChangePlankHeights(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.") Is Nothing Then
            MsgBox("Scaffolding list in desired frame not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.").LDXType, DigiPara.LDX.LDXScaffoldings)
            .SetDZ(0, .GetDZ(0) + 72)
            .SetDZ(1, .GetDZ(1) + 142)
            .SetDZ(2, .GetDZ(2) + 71)
        End With

    End Sub