AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgByteReader* MgReader::GetGeometry ( CREFSTRING  propertyName  )  [pure virtual]

Gets the Geometry for the specified property.

Remarks:
No conversion is performed. Therefore, the property must be a of type MgPropertyType::Geometry or an MgInvalidPropertyTypeException is thrown.
.NET Syntax
virtual MgByteReader GetGeometry(string propertyName);
Java Syntax
virtual MgByteReader GetGeometry(String propertyName);
PHP Syntax
virtual MgByteReader GetGeometry(string propertyName);

Parameters:
propertyName (String/string) The property name.
Returns:
Returns a geometry in AGF binary format in an MgByteReader object.
Exceptions:
MgInvalidPropertyTypeException