This method removes the existing coordinate system definition from the current drawing.
Note:
Coordinate systems cannot be removed when the drawing contains web feature layers.
Declaration
public bool Esri.ArcGISForAutoCAD.CoordinateSystem.Remove(Document doc)
Parameter
| Type | Name | Description | Required |
|---|---|---|---|
Document | doc | The AutoCAD document to act on. | required |
Returns
| Type | Description |
|---|---|
bool | true if the coordinate system was removed successfully |
Remarks on error conditions
This method may throw an exception or return false or null if a parameter is invalid.
Example
Print the success of removing the existing coordinate system.// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;
// Remove the coordinate system
var success = Esri.ArcGISForAutoCAD.CoordinateSystem.Remove(doc);
// Print the success
doc.Editor.WriteMessage(success.ToString());
/* Example output
True
*/
See also
esri_coordsys_remove—An AutoLISP function that removes the existing coordinate system definition from the current drawing