Line break with set distance

Line break with set distance

dolman_gary
Observer Observer
1,483 Views
9 Replies
Message 1 of 10

Line break with set distance

dolman_gary
Observer
Observer

I have seen multiple lisp routines that break lines but none that fit my need. I want to break a line at multiple points by setting a distance and picking intersections along the line as shown on the top vertical line in my screenshot.

I downloaded several routines that claimed to do this but none have worked successfully.

 

 

0 Likes
1,484 Views
9 Replies
Replies (9)
Message 2 of 10

Kent1Cooper
Consultant
Consultant

You don't specify what you've tried, but >here< is one that worked for me.

Kent1Cooper_0-1686923846501.png

with the difference [which I hope is acceptable] that you don't pick the intersections, but rather the breaking Line(s) and the intersecting one(s) to be broken.  Works with Lines only.

 

[And you really mean the top horizontal line in the image.]

Kent Cooper, AIA
0 Likes
Message 3 of 10

dolman_gary
Observer
Observer

Kent, thanks for the Lisp, it works, with a little practice to get the picking order I can break horizontal or vertical.

Much Appreciated.

0 Likes
Message 4 of 10

Kent1Cooper
Consultant
Consultant

@dolman_gary wrote:

... I can break horizontal or vertical....


Or otherwise:

Kent1Cooper_0-1686941730112.png

But it wouldn't let me do all of those collectively -- I had to do some, and then others.  I haven't studied the routine to figure out why, but maybe it can be fixed to allow more-multiple operation, or there are probably other routines out there that already do, and/or that work with additional object types.

 

EDIT:

One that does well at multiples [in very limited trial], and that works with both Lines and Polylines [including arc segments], is >here< from @john.uhden.  It turns the broken-off part(s) of broken ones, but not what remains of the originals, green, but if you don't want that, just remove or comment out this line:

 

; (vlax-put obj2 'Color 3) ; just to see the difference

Kent Cooper, AIA
0 Likes
Message 5 of 10

Sea-Haven
Mentor
Mentor

Is it leading to this as next step ?

SeaHaven_0-1687132693821.png

 

0 Likes
Message 6 of 10

dolman_gary
Observer
Observer

Seahaven, is there a lisp to break lines and draw an arc as shown in your example?

0 Likes
Message 7 of 10

pendean
Community Legend
Community Legend

@dolman_gary wrote:

Seahaven, is there a lisp to break lines and draw an arc as shown in your example?


Have you had a chance to look yet? 

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/simple-line-break-and-jump-autolisp/...

https://www.google.com/search?q=autocad+lisp+to+create+jumper+lines 

0 Likes
Message 8 of 10

dolman_gary
Observer
Observer

dolman_gary_0-1687965345416.png

This is what I get using that linejump lisp

0 Likes
Message 9 of 10

pendean
Community Legend
Community Legend
@dolman_gary If that one single LISP does not work for you, you can reach out to that author or try all the other lisps in reply to that original post that seems to offer additional solutions, as well as try the many other web-based solutions offered in the next link.
0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant

@dolman_gary wrote:

This is what I get using that linejump lisp


Which one is "that"?  There are several routines by that name in that topic, with progressive adjustments, including partial edit suggestions.  Have you tried the one at Message 30 there?

Kent Cooper, AIA
0 Likes