Arbortext IsoDraw > Macro Language Reference > Object Data Types > Document Object > document.firstSelectedElement
  
document.firstSelectedElement
This property returns the first selected element of a selection as element. To get the next element of a selection use element.nextSelectedElement (see element.nextSelectedElement).
MACRO ListElementSelection
DEFINE el AS Element
DEFINE m AS String
el = activeDoc.firstSelectedElement
IF (exists(el ) = false) THEN
MESSAGE "Select some Elements, please!"
Else
m = "Type(s) of selected Elements: " + el.type
el = el.nextSelectedElement
WHILE (exists(el ) = true)
m = m + ", " + el.type
el = el.nextSelectedElement
END WHILE
MESSAGE m + "."
END If
END MACRO