|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarBumperRail5.Mode
Treename: Shaft0.Car.Design.Wall2.Bumpers.Rail1.
' from Samples/Src/LDXAPIExamples/Example_LDXCarBumperRails.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Wall2.Bumpers.Rail1.", "LDXCarBumperRail~Mode", "Change bumper rail height")>
Public Shared Sub ChangeBumperRailHeight(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.Bumpers.Rail1.") Is Nothing Then
MsgBox("Desired car bumper rail not found! Please Reload the relevant .ld3 file.")
Exit Sub
End If
If MsgBox("Change only the height of first bumper rail within the rear wall?" + Environment.NewLine + "If not all bumper rail heights will be changed within the wall rear.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.Bumpers.Rail1.").LDXType, DigiPara.LDX.LDXCarBumperRail)
' Calculate the height of the first rear wall bumper rail independent of group
.Mode = .Mode Or DigiPara.LDX.CarBumperRailModes.cbrIndividualZdimensions
' Height of the first rear bumper rail
.Object.SetValue("DZ", 500)
End With
Else
' Height of all rear wall bumper rails
TryCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.Bumpers.").LDXType, DigiPara.LDX.LDXCarBumperRails).Object.SetValue("DZ", 500)
End If
End Sub