|
DigiPara Liftdesigner LDX API
|
API method: ILDXCylinderBase5.DZ0
Treename: Shaft0.Car.Frame.Cyl0.CylSupport0.
' from Samples/Src/LDXAPIExamples/Example_LDXCylinder.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Cyl0.CylSupport0.", "LDXCylinderBase~DZ0", "Change cylinder base height")>
Public Shared Sub ChangeCylinderBaseHeight(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.CylSupport0.") Is Nothing Then
MsgBox("Required cylinder base not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.").LDXType, DigiPara.LDX.LDXCarFrame)
' Manually set jack attack point
.FRAME_MODE = .FRAME_MODE Or DigiPara.LDX.CarFrameModes.cfmDzManual
.FORCE_DZ = -111
End With
Dim ldxCylinderBase As DigiPara.LDX.LDXCylinderBase = DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.Cyl0.").LDXType, DigiPara.LDX.LDXCylinder).Base
With ldxCylinderBase
.DZ0 = -555
.Object.GetDim("DZ0").Calculate()
End With
End Sub