CAD2007版本有GeometricExtents取范围函数的bug,2008以上版本修复,可用以下代码代替

Autodesk.AutoCAD.Interop.Common.AcadAttributeReference acadAtt =
   lstAtt[i].AcadObject 
as Autodesk.AutoCAD.Interop.Common.AcadAttributeReference;              
object objMin; object objMax; double[] ptMin; double[] ptMax;
acadAtt.GetBoundingBox(
out objMin, out objMax);
ptMin 
= (double[])objMin;
ptMax 
= (double[])objMax;

 

posted @ 2010-03-26 20:51  houlinbo  阅读(1071)  评论(0编辑  收藏  举报