Arbortext IsoDraw > Macro Language Reference > Object Data Types > Document Object > document.Objects[object_ID]
  
document.Objects[object_ID]
Applies to Arbortext IsoDraw 7.0 F000 and later:
Enables access to an object within the document by object ID string. This property is read only.
object_ID
(String) Object ID of the object to access.
MESSAGE myDoc.patternCount
MACRO ObjectIndexDemo
DEFINE sID AS string
DEFINE sName AS string
sID = "AUTOID_3833"
IF ( exists(activeDoc.Objects[sID]) )
sName = activeDoc.Objects[sID].info.NAME
MESSAGE "Name: " + sName
ELSE
MESSAGE "Not Found!"
END IF
END MACRO