DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Enable sub components

API method: ILDXComp5.SetPgtItem

Treename: Shaft0.Car.Frame.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.", "LDXComp~SetPgtItem", "Enable sub components")>
    Public Shared Sub EnableAllSubComponents(ldxDocument As DigiPara.LDX.LDXDocument)

        With ldxDocument.GetLDXComp("Shaft0.Car.Frame.")
            If ldxDocument.GetLDXObject("Shaft0.Car.Frame.") Is Nothing OrElse .GetPgtCount = 0 Then
                MsgBox("Sub componants within car frame not found!")
                Exit Sub
            End If
            For index = 0 To .GetPgtCount - 1
                .SetPgtItem(index, True)
            Next
        End With

    End Sub