Hi
only a short idea:
If there is an arc, so get 3 points of it using the DIVIDE-command.
In order to reverse create the reverse arc from these 3 point in reverse
order (I don't like the bulges and chords too...).
Regards
Jochen
www.black-cad.de
"Rakesh Rao" schrieb im Newsbeitrag
news:407287A0.3080709@4d-technologies.com...
>
> Hello,
>
> I have always had difficulty reversing (programmatically in Lisp) the
> direction of a polyline that has arc segments in them. Does anyone have
> a code that would reverse arc segmented polylines?
>
> I got around it with a tip that was posted here some years back. It
> involves drawing a line from the center of the current view to the end
> point of the polyline and then using the Pedit Join command to select
> this line and the original polyline. This would reverse arced polylines.
> Then the first vertex of the polyline had to be deleted.
>
> This method, however fails when if the polyline is closed and if the
> last segment happens to be an arc. In such a case, the above method
> would reverse the polyline but the last arced segment becomes a straight
> line. So, I am now looking for a more robust solution to this. I am not
> very good to playing with the bulge factors.
>
> Any pointers, code welcome.
>
> Regards
> Rakesh
> --
>
> Please email me your replies. I may not always be observing the posts
here.
>
> email: rakesh.rao@4d-technologies.com
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>