Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

leeminardi
en respuesta a: Kent1Cooper


@Kent1Cooper wrote:

That's the idea from Message 2. 

But no code?  You're a much better LISP prgrammer than me so after a few days of not seeig any code I thought I would give it a try.

A couple of suggestions:

Also re-JOIN the source en1 and en2 Polylines back together.

You're right,  I didn't need to define en3 and en4 as en1 and en2 were avaialable!  

Go to the nearest vertex to the pick point for the Break, so that the Joined end results don't have an extra vertex at the pick point.  [That has the risk that if there's a non-tangent change in direction there, the Offset results won't touch at their ends, so a fuzz distance would be needed in the JOINing.]

But if you go to the nearest vertex you also run the risk of that vertex being on the other side of the self-intersection point.  A select point snapped to a vertex could cause a problem as the ends of the two offset polylines may not be coincident.  Perhaps osnap should be turned off during selection.

@ltastan1 , would your originals ever self-intersect more than once?  Depending on the specifics and exactly where you pick, this approach would sometimes not have the desired result on such a Polyline.

The "break" approach could be modified by asking for the user to identify mutiple loops if they exist.  


 

lee.minardi