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

API method: ILDXScaffoldings5.MP_LIST_MODE

Treename: Shaft0.AssemblyPlatformList.

2 code examples follow.

Example 1: Change platform properties

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldings.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.", "LDXScaffoldings~MP_LIST_MODE", "Change platform properties")>
    Public Shared Sub ChangePlatformProperties(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)
            .MP_LIST_MODE = .MP_LIST_MODE Or DigiPara.LDX.ScaffoldingsModes.scmTypeHorizontalDouble
        End With

    End Sub

Example 2: Enable anchor rails

 ' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldings.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail0.", "LDXScaffoldings~MP_LIST_MODE", "Enable anchor rails")>
    Public Shared Sub EnableAnchorRails(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)
            .MP_LIST_MODE = .MP_LIST_MODE Or DigiPara.LDX.ScaffoldingsModes.scmTypeHorizontalDouble Or DigiPara.LDX.ScaffoldingsModes.scmFixingAnchorRail
        End With

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail0.").LDXType, DigiPara.LDX.LDXAnchorRail)
            .Length = 1111
            .Object.ChangePartRID64(1347, 0)
        End With

    End Sub