Request: LISP that rolls out a polyline

Request: LISP that rolls out a polyline

YasserMahran
Participant Participant
569 Views
3 Replies
Message 1 of 4

Request: LISP that rolls out a polyline

YasserMahran
Participant
Participant

Hi all, I was looking for a lisp that takes a polyline like this: (of course it's in a single line, but segments are colored for clarifiying purposes):

and outputs segments of straight line like this:

0 Likes
Accepted solutions (2)
570 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant
Accepted solution

This came up in December.  Look here.

Kent Cooper, AIA
0 Likes
Message 3 of 4

YasserMahran
Participant
Participant

Excellent! however for I noticed that it ignores small segments (<0.2), take this polyline as an example, the segment I put the dimension on won't come up when the lisp is applied:

0 Likes
Message 4 of 4

Kent1Cooper
Consultant
Consultant
Accepted solution

@YasserMahran wrote:

.... it ignores small segments (<0.2), take this polyline as an example, the segment I put the dimension on won't come up when the lisp is applied:


You probably have running Object Snap on, and the short segment's new end is within Osnap distance from the last point.  Either turn running Osnap off [the routine can also be made to do that for you], or change this line:

 

    (command (polar (getvar 'lastpoint) 0 (car lengths)))

 

to this:

 

    (command "_none" (polar (getvar 'lastpoint) 0 (car lengths)))

Kent Cooper, AIA
0 Likes