要删除特定的标注样式,请使用成员对象的 Delete 方法。例如,以下代码删除图层 ABC:
Dim ABCLayer as AcadLayer
Set ABCLayer = ThisDrawing.Layers.Item("ABC")
ABCLayer.Delete
删除某个对象后,不能在程序中再试图访问该对象。
Submit feedback about this site to: