Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a drawing with a Polyline boundary and several lines inside that boundary. In AutoCAD, using the BOUNDARY command and clicking in the middle of each enclosed region, it automatically creates a closed Polyline (square, triangle, or any other shape).
I would like to know if it is possible, through the AutoCAD .NET C# API, to automate this process, so that all the internal regions formed by the intersections of the lines inside the boundary are automatically converted into closed shapes, without needing to click manually on each one.
var hatch = HatchPolyLine(poly2d.Id);
hatch.AddToDocument(btr, act);
DBObjectCollection explodedObjects = new DBObjectCollection();
hatch.Explode(explodedObjects);
Apply Boundary
Solved! Go to Solution.