AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

MgLayerBase* MgLayerCollection::GetItem ( CREFSTRING  name  ) 

Returns the layer with the specified name.

.NET Syntax
MgLayerBase GetItem(string name);
Java Syntax
MgLayerBase GetItem(String name);
PHP Syntax
MgLayerBase GetItem(string name);

Parameters:
name (String/string) Name of the layer to get.
Returns:
Returns the layer.
Exceptions:
MgObjectNotFoundException if the name does not exist.