DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change Z - position

API method: ILDXGovernor5.GOV_LOCATION

Treename: Shaft0.Car.Frame.Gov.

 ' from Samples/Src/LDXAPIExamples/Example_LDXGovernor.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Gov.", "LDXGovernor~GOV_LOCATION", "[0170] Change Z - position")>
    Public Shared Sub ChangeZPosition(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Gov.") Is Nothing Then
            MsgBox("Overspeed governor not found!")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.Gov.").LDXType, DigiPara.LDX.LDXGovernor)
            ' Location
            .GOV_LOCATION = DigiPara.LDX.GovernorLocation.govlShaftBottom
            ' Additional elevation from the current location
            .BASE_DZ = -200
        End With

    End Sub