Skip To Content

CoordinateSystem.Remove (.NET)

此方法可从当前工程图中移除现有的坐标系定义。

注:

当工程图包含 Web 要素图层时,无法移除坐标系。

声明

public bool Esri.ArcGISForAutoCAD.CoordinateSystem.Remove(Document doc)

参数

类型名称描述必填

文档

doc

要进行操作的 AutoCAD 文档。

必填

返回

类型描述

bool

如果坐标系已成功移除,则为 true

错误条件备注

如果参数无效,则此方法可能会抛出异常或者返回 falsenull

示例

打印成功移除现有坐标系。

// 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
*/

另请参阅

esri_coordsys_remove - 此 AutoLISP 函数可从当前工程图中移除现有的坐标系定义。