DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Hide ghost

API method: ILDXMoveFrame5.AdditionalExclude

Treename: Shaft0.CW.Weight.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCWFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.CW.Weight.", "LDXMoveFrame~AdditionalExclude", "Hide ghost")>
    Public Shared Sub HideGhost(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.CW.Weight.") Is Nothing Then
            MsgBox("Counter weight frame not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        Dim ldxMoveFrame As DigiPara.LDX.LDXMoveFrame = ldxDocument.Shafts(0).CWConsole.CWFrame.MoveFrame

        With ldxMoveFrame
            ' Hide counter weight frame
            .AdditionalExclude = "Shaft0.CW.Weight."
            ' Hide guide shoes
            .AdditionalExclude = .AdditionalExclude + ",Shaft0.CW.Weight.GuideShoeBottom0."
            .AdditionalExclude = .AdditionalExclude + ",Shaft0.CW.Weight.GuideShoeBottom1."
            .AdditionalExclude = .AdditionalExclude + ",Shaft0.CW.Weight.GuideShoeTop0."
            .AdditionalExclude = .AdditionalExclude + ",Shaft0.CW.Weight.GuideShoeTop1."
        End With

    End Sub