DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change ghost visible portion

API method: ILDXCar5.GHOST_DZ_FACTOR

Treename: Shaft0.Car.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCar.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.", "LDXCar~GHOST_DZ_FACTOR", "Change ghost visible portion")>
 Public Shared Sub MultipleGhosts(ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetLDXObject("Shaft0.Car.") Is Nothing Then
         MsgBox("Car console not found!")
         Exit Sub
     End If

     Dim ldxCar As DigiPara.LDX.LDXCar = ldxDocument.Shafts(0).Car

     ldxCar.GHOST_DZ_FACTOR = 1

     Dim ghostObject As DigiPara.LDX.LDXObject = ldxCar.Object.GetObjectByRelativeName("Components.Symbol5.")
     If ghostObject IsNot Nothing Then
         ldxCar.Object.GetObjectByRelativeName("Components.Symbol15.")?.RemoveMe()
         Dim ghostSymbol As DigiPara.LDX.LDXSymbol = ghostObject.LDXType
         ghostSymbol.Type = 15
         With ghostSymbol.Comp
             .LocalMatrix.R.Z = .LocalMatrix.R.Z + 1000
             .WorldMatrix.R.Z = .WorldMatrix.R.Z + 1000
         End With
     End If
 End Sub