Polyline2d plineEnt = ent as Polyline2d;
Point3dCollection pLinePtList = new Point3dCollection();//将polyline2d的各个端点保存到plinePtList中。
List<double> bulgeList = new List<double>();
IEnumerator vertices = plineEnt.GetEnumerator();
while (vertices.MoveNext())
{
ObjectId id = (ObjectId)vertices.Current;
Vertex2d vtx = (Vertex2d)id.GetObject(OpenMode.ForRead);
bulgeList.Add(vtx.Bulge);
pLinePtList.Add(plineEnt.VertexPosition(vtx));
}
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |