Message 1 of 1
Read DXF, recreate loop, AppendOuterLoop

Not applicable
05-30-2005
06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
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!