|
DigiPara Liftdesigner LDX API
|
API method: ILDXOilStorage5.Mode
Treename: Shaft0.HYD.Tank.
' from Samples/Src/LDXAPIExamples/Example_LDXHYConsole.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.HYD.Tank.", "LDXOilStorage~Mode", "Change oil storage properties")>
Public Shared Sub ChangeOilStorageProperties(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.HYD.Tank.") Is Nothing Then
MsgBox("Oil storage not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.HYD.Tank.").LDXType, DigiPara.LDX.LDXOilStorage)
' Manually change location
.Mode = .Mode And Not (DigiPara.LDX.OilStorageModes.osmAutoXy Or DigiPara.LDX.OilStorageModes.osmAutoZ)
' Oil storage displacement
' Sideways
.X0 = 1111
' Inward
.Y0 = 2222
' Upward
.Z0 = -222
End With
End Sub