AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgFeatureReader* MgSelectionBase::GetSelectedFeatures ( MgLayerBase layer,
CREFSTRING  className,
bool  mappedOnly 
) [virtual]

Returns the selected feature data for the specified feature class.

.NET Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, bool mappedOnly);
Java Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, String className, boolean mappedOnly);
PHP Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, bool mappedOnly);

Parameters:
layer (MgLayerBase) Input layer.
className (String/string) Input feature class name.
mappedOnly (boolean/bool) Return mapped (true) or all (false) properties for selected features
Returns:
Returns a feature reader containing all the features for the given feature class in this selection.
Note:
This method is provided to obtain feedback from customers. In future releases it may change in functionality or be deprecated.