AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual INT32 MgGeometricEntity::GetDimension (  )  [pure virtual]

Gets the geometric dimension of this entity, indicating whether the entity is defined by points, curves, or regions, that is, is zero, one, or two dimensional.

.NET Syntax
virtual int GetDimension();
Java Syntax
virtual int GetDimension();
PHP Syntax
virtual int GetDimension();

Returns:
Returns one of the values defined in MgGeometricDimension.

Implemented in MgArcSegment, MgCurvePolygon, MgCurveRing, MgCurveString, MgLinearRing, MgLinearSegment, MgLineString, MgMultiCurvePolygon, MgMultiCurveString, MgMultiGeometry, MgMultiLineString, MgMultiPoint, MgMultiPolygon, MgPoint, and MgPolygon.