Arbortext IsoDraw > Référence du langage macro > Object Data Types > Element Object
  
Element Object
An element is something you have created in Arbortext IsoDraw, for example an ellipse or a line.
DEFINE myElem AS element
myElem = CREATE LINE 10 10 100 10
All create commands (ellipse, line, rectangle ...) return a reference on the created element. The properties of this element object can be queried and set.
MACRO Change Segment Pens

DEFINE myElem AS element
myElem = CREATE LINE 10 10 100 100
APPEND LINE SEGMENT 100 10
APPEND LINE SEGMENT 10 10

myElem.line.segments[1].pen = "Thick"
myElem.line.segments[2].pen = "Medium"
myElem.line.segments[3].pen = "Thin"

END MACRO
It is assumed that myElem has already been defined as an element for the following samples.