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

API method: ILDXCarSeat5.CarSeatTab

Treename: Shaft0.Car.Design.Wall2.Seat.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarSeat.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Wall2.Seat.", "LDXCarSeat~CarSeatTab", "Change properties")>
    Public Shared Sub ChangeProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.Seat.") Is Nothing Then
            MsgBox("Car rear wall seat not found!")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.Seat.").LDXType, DigiPara.LDX.LDXCarSeat)
            ' Calculate the sideways displacement from the left automatically
            .Mode = .Mode Or DigiPara.LDX.CarSeatModes.cstCalculateX0
            ' Sideways displacement from the right
            .Object.SetValue("X1", 555)
            ' Height of seat  
            .CarSeatTab.SetValue("CST_USER_PG_50", 444)

        End With

    End Sub