DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change runbys

API method: ILDXCylinder5.TOP_RUNBY_ADD

Treename: Shaft0.Car.Frame.Cyl0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCylinder.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Cyl0.", "LDXCylinder~TOP_RUNBY_ADD", "Change runbys")>
    Public Shared Sub ChangeRunbys(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.") Is Nothing Then
            MsgBox("Required cylinders not found!")
            Exit Sub
        End If

        ' Addition to top runby
        DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.").LDXType, DigiPara.LDX.LDXCylinder).TOP_RUNBY_ADD = 666
        ' Addition to bottom runby
        DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.").LDXType, DigiPara.LDX.LDXCylinder).BOTTOM_RUNBY_ADD = 333
        ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.").GetDim("BOTTOM_RUNBY_ADD").Calculate()
        ' Top runby of car
        DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.").LDXType, DigiPara.LDX.LDXCar).TOP_RUNBY = 444
        ' Bottom runby of car
        DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.").LDXType, DigiPara.LDX.LDXCar).BOTTOM_RUNBY = 555

    End Sub