Read DXF, recreate loop, AppendOuterLoop

Read DXF, recreate loop, AppendOuterLoop

Anonymous
Not applicable
187 Views
0 Replies
Message 1 of 1

Read DXF, recreate loop, AppendOuterLoop

Anonymous
Not applicable
I am currently working on a code to manage Hatches where the boundaries have been erased in AutoCAD. The loop information being in the DXF, I am reading this DXF to retrieve the missing boundary information.

I create first read the DXF, I create the entities (lines, arcs, polylines, ...) with a Function that returns this entity in an Array, that I then pass to the AppendOuterLoop methode of a new AcadHatch. This works most of the time, but I also get an "invalid input" error once in a while.

I am looking for a way to Validate the Outerloop with a method. It wouldn't be complicated if they only were lines and Polylines, but you have Arcs and Ellipses that you dont have the true "EndPoint" whare the line finishes (the endpoint in the ellipse does not match with any intersections of the boundaries).

If anyone has developed a validating routine for boundaries, help would be very appreciated!
0 Likes
188 Views
0 Replies
Replies (0)