Arbortext IsoView > Programmer's Reference > Object Functions > GetObjectName
  
GetObjectName
* 
This method is deprecated and supported for backward compatibility. Use Iso3GetObjectName instead. (See Iso3GetObjectName.)
This method retrieves the name of the object with the given index. It returns the name of the object as BSTR.
Use GetObjectID to get the ID 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 GetObjectName or GetObjectID.
Introduced with Arbortext IsoView 2.0.
See:
GetObjectName
GetObjectCount
DisposeObjectList
GetObjectID
GetObjectName.
Syntax
GetObjectNameindex
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();