CAD中圆可转为带有凸度的多段线以方便后期数据计算、处理,效果如下:
白色为圆,红色为转换后的多段线(为区分,已手工偏移多段线)
public static void XX()
{
var curves = Z.db.SelectEntities<Entity>();
foreach (var item in curves)
{
if (item is Circle)
{
Circle temp = (Circle)item;
Point3d pt = temp.Center;
double leftx = pt.X - temp.Radius;
double rightx = pt.X + temp.Radius;
double topx = pt.X;
double bottomx = pt.X;
double lefty =