DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Remove a profile

API method: ILDXProfiles5.RemoveAt

Treename: Shaft0.Car.Frame.Profile21.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Profile21.", "LDXProfiles~RemoveAt", "Remove a profile")>
    Public Shared Sub RemoveAProfile(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Profile21.") Is Nothing Then
            MsgBox("The needed profile was not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.").LDXType, DigiPara.LDX.LDXSheetFrame).DeveloperComp
            .Profiles.RemoveAt(.Profiles.Count - 1)
        End With

    End Sub