DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change profile point type

API method: ILDXProfilePoint5.PGP_CODE_NO

Treename: Shaft0.Car.Frame.CPTS.PT0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.CPTS.PT0.", "LDXProfilePoint~PGP_CODE_NO", "[0515] Change profile point type")>
    Public Shared Sub ChangeProfilePointType(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

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

        DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.CPTS.PT0.").LDXType, DigiPara.LDX.LDXProfilePoint).PGP_CODE_NO = 2

    End Sub