Skip To Content

CoordinateSystem.Remove (.NET)

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

TypeNameDescriptionRequired

Document

doc

The AutoCAD document to act on.

required

Returns

TypeDescription

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