|
发表于 2015-11-4 14:57:00
|
显示全部楼层
Point3d extMinPt=ent.GeomExtents.MinPoint;
Point3d extMaxPt = ent.GeomExtents.MaxPoint;
Point2d extMin = new Point2d(extMinPt.X, extMinPt.Y);
Point2d extMax = new Point2d(extMaxPt.X, extMaxPt.Y);
Point2dCollection pt2dCollection=new Point2dCollection();
pt2dCollection.Add(extMin);
pt2dCollection.Add(extMax);
Polyline poly=CreateEnt.Polyline(pt2dCollection, 0);
CreateEnt.ToModelSpace(poly);
用GeomExtents得到的最小和最大点如图所示。我醉了。。。
pqgelbmmti1.png
|
|