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

API method: ILDXProfilePoints5.Clear

Treename: Shaft0.Car.Frame.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.", "LDXProfilePoints~Clear", "Remove profile points")>
    Public Shared Sub RemoveProfilePoints(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

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

        With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.").LDXType, DigiPara.LDX.LDXSheetFrame).DeveloperComp.ProfilePoints
            If MsgBox("Do you want to clear all points? If not only one point will be deleted.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
                .Clear()
            Else
                .RemoveAt(9)
            End If
        End With

    End Sub