Arbortext IsoView > Programmer's Reference > Layer Functions > GetLayerName
  
GetLayerName
This method retrieves the name of the layer with the given index. It returns the name of the layer as BSTR.
Use GetLayer Count to get the number of layers in the illustration. (See GetLayerCount.)
After you have retrieved your preferred layer information it is recommended to call DisposeLayerList to free the memory used by Arbortext IsoView to keep the layer information for all layers. (See DisposeLayerList .) This list will be rebuilt after the next call to GetLayerName.
Introduced with Arbortext IsoView 2.0.
Syntax
GetLayerNameindex
Parameters:
index
Defines the index of the layer as long (0 based).
for ( n = 0; n < document.ivx1.GetLayerCount();
n++ )
{
form1.edtName.value =
document.ivx1.GetLayerName(n);
}
document.ivx1.DisposeLayerList();