DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change hand rail height

API method: ILDXCarHandRail5.Mode

Treename: Shaft0.Car.Design.Wall2.HandRails.Rail0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarHandRails.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Wall2.HandRails.Rail0.", "LDXCarHandRail~Mode", "Change hand rail height")>
    Public Shared Sub ChangeHandRailHeight(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.HandRails.Rail0.") Is Nothing Then
            MsgBox("Desired car hand rail not found! Please Reload the relevant .ld3 file.")
            Exit Sub
        End If

        If MsgBox("Change only the height of first hand rail within the rear wall?" + Environment.NewLine + "If not all hand rail heights will be changed within the wall rear.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
            With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.HandRails.Rail0.").LDXType, DigiPara.LDX.LDXCarHandRail)
                ' Calculate the upward displacement of the first rear wall hand rail independent of group
                .Mode = .Mode Or DigiPara.LDX.CarHandRailModes.chrIndividualZdimensions
                ' Upward displacement of the first rear hand rail from the car floor
                .Object.SetValue("Z0", 888)
            End With
        Else
            ' Upward displacement from the car floor of all rear wall handrails, if they exist
            TryCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.HandRails.").LDXType, DigiPara.LDX.LDXCarHandRails).Object.SetValue("Z0", 888)
        End If
    End Sub