|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarKickPlate5.Mode
Treename: Shaft0.Car.Design.Wall2.KickPlates.Plate0.
' from Samples/Src/LDXAPIExamples/Example_LDXCarKickPlates.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Wall2.KickPlates.Plate0.", "LDXCarKickPlate~Mode", "Change kick plate height")>
Public Shared Sub ChangeKickPlateHeight(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.KickPlates.Plate0.") Is Nothing Then
MsgBox("Desired car kick plate not found! Please Reload the relevant .ld3 file.")
Exit Sub
End If
If MsgBox("Change only the height of first kick plate within the rear wall?" + Environment.NewLine + "If not all kick plate heights will be changed within the wall rear.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.KickPlates.Plate0.").LDXType, DigiPara.LDX.LDXCarKickPlate)
' Calculate height of the first rear wall kick plate independent of group
.Mode = .Mode Or DigiPara.LDX.CarKickPlateModes.ckplIndividualZdimensions
' Height of the first rear kick plate
.Object.SetValue("DZ", 200)
End With
Else
' Height of all rear wall kick plates
TryCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Wall2.KickPlates.").LDXType, DigiPara.LDX.LDXCarKickPlates).Object.SetValue("DZ", 200)
End If
End Sub