你应该先判断图形的类型,下列对象有Closed属性可以判断是否闭合
MSITStore:C:\AutoCAD%202004\help\acadauto.chm::/idh_3dpoly_object.htm" target="_blank" >3DPolyline , MSITStore:C:\AutoCAD%202004\help\acadauto.chm::/idh_lightweightpolyline_object.htm" target="_blank" >LightweightPolyline, MSITStore:C:\AutoCAD%202004\help\acadauto.chm::/idh_polyline_object.htm" target="_blank" >Polyline, MSITStore:C:\AutoCAD%202004\help\acadauto.chm::/idh_spline_object.htm" target="_blank" >Spline |