- Polyline2d pl2d = tr.GetObject(resEnt.ObjectId, OpenMode.ForRead) as Polyline2d;
- foreach (ObjectId id in pl2d)
- {
- Vertex2d ver = tr.GetObject(id, OpenMode.ForRead) as Vertex2d;
- ed.WriteMessage(ver.Position.ToString());
- }
- Polyline3d pl3d = tr.GetObject(resEnt.ObjectId, OpenMode.ForRead) as Polyline3d;
- foreach (ObjectId id in pl3d)
- {
- PolylineVertex3d ver = tr.GetObject(id, OpenMode.ForRead) as PolylineVertex3d;
- ed.WriteMessage(ver.Position.ToString());
- }
|