Skip to content

CadnaA-Object

  • cnaobj.ATTRIBUTE accessing attributes (read/write). ATTRIBUT is a wild card for attribute names (see Table Object Attributes, manual “Attributes, Variables, and Keywords”.
  • cnaobj.memo_var.MEMO_VAR_NAME access for memo text variable MEMO_VAR_NAME MEMO_VAR_NAME (read and write). The assignment also creates memo text variables if they are not available.
  • cnaobj.poly accessing polygon data (feature of polygonal objects such as roads, auxiliary polygons, etc.), see Polygon-Object.
  • cnaobj:delete()deletes the object. Afterwards, addressing the object is no longer possible (NOTE: Here the colon has to be used!)
  • cnaobj.set(<ATTRIBUTE>, <VALUE>)sets an object's attribute to the desired value. This syntax also allows access to attributes per variant (see Object Attributes per Variant), for example, using "DTV@V2" as the attribute.
  • cnaobj.get(<ATTRIBUTE>)returns the value of an attribute and also allows access to attributes per variant, see Object Attributes per Variant.