DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Data Tree

Object Hierarchy

Typically, you will use typesafe LDX properties and functions to move around the data model, such as in this excerpt:

classDiagram
      class ILDXDocument5
      class ILDXShafts5
      class ILDXShaft5
      class ILDXEntries5
      class ILDXCar5
      class ILDXCarDoor5

ILDXDocument5 ..> ILDXShafts5 : .Shafts
ILDXShafts5 ..> ILDXShaft5 : .Item(), enumeration
ILDXShaft5 ..> ILDXCar5 : .Car
ILDXShaft5 ..> ILDXEntries5 : .GetEntries()
ILDXCar5 ..> ILDXCarDoor5 : .GetDoor()
ILDXCar5 ..> ILDXShaft5 : .Comp.Shaft
ILDXCarDoor5 ..> ILDXShaft5 : .Comp.Shaft
ILDXEntries5 ..> ILDXShaft5 : .Comp.Shaft

That is not always possible, so we have a couple of methods on ILDXObject5 and ILDXDocument5 to navigate over Data Tree Names (you probably know them from the Data Tree docking window).

  • ILDXObject5. GetChildren ". GetChildren" yields all its data tree children: Get child LDX objects (fastest) .
  • Read and write individual simple values (numbers and strings) via ILDXObject5. GetValue ". GetValue" (See Display shaft dimensions) and ILDXObject5. SetValue ". SetValue" (See Change dimensions)
  • Get a subobject by exact relative treename via ILDXObject5. GetObjectByRelativeName ". GetObjectByRelativeName"
  • Get the first subobject matching a treename pattern with ILDXObject5. GetFirstObjectByRelativeAsteriskName ". GetFirstObjectByRelativeAsteriskName"
  • Get a list of subobjects matching a treename pattern with ILDXObject5. GetObjectsByRelativeAsteriskName ". GetObjectsByRelativeAsteriskName"

All these give you ILDXObject5 interfaces. To get to the other interfaces from there, see Interfaces of an Object.

Next: Patterns