This method returns the Esri coordinate system definition currently defined in the drawing as a string.
Declaration
public string Esri.ArcGISForAutoCAD.CoordinateSystem.Get(Document doc)
Parameter
| Type | Name | Description | Required |
|---|---|---|---|
Document | doc | The AutoCAD document to act on. | required |
Returns
| Type | Description |
|---|---|
string | The Esri coordinate system definition in the drawing. |
Remarks on error conditions
This method may throw an exception or return an empty string or null if a parameter is invalid.
Example
Print the Esri coordinate system definition in the drawing.// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;
// Get the coordinate system definition
var coordSys = Esri.ArcGISForAutoCAD.CoordinateSystem.Get(doc);
// Print the coordinate system definition
doc.Editor.WriteMessage(coordSys);
/* Example output
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]
*/
See also
esri_coordsys_get—An AutoLISP function that returns the Esri coordinate system definition string currently defined in the drawing as a list containing the string.