Arbortext IsoView > Programmer's Reference > Object Functions > GetObjectID
  
GetObjectID
* 
This method is deprecated and supported for backward compatibility. Use Iso3GetObjectID instead.
This method retrieves the ID of the object with the given index. It returns the ID of the object as long.
Use GetObjectName to get the name of an object. With GetObjectCount you get the number of objects in the illustration. After you have retrieved your preferred object information, it is recommended to call DisposeObjectList to free the memory used by Arbortext IsoView to keep the object information of all objects. This list will be rebuilt after the next call to GetObjectID or GetObjectName.
Introduced with Arbortext IsoView 2.0.
See:
GetObjectName
GetObjectCount
DisposeObjectList
GetObjectID
GetObjectName.
Syntax
GetObjectIDindex
Parameters:
index
Defines the index of the object as long (0 based).
var ObjID = new Array();
var ObjName = new Array();

for ( n = 0; n < document.ivx1.GetObjectCount();
n++ )
{
ObjsID[n] = document.ivx1.GetObjectID(n);
ObjName[n] =
document.ivx1.GetObjectName(n);
}

document.ivx1.DisposeObjectList();