How to burst a polyline drawn by Polyline Fillet LISP into lines

How to burst a polyline drawn by Polyline Fillet LISP into lines

masumiNYMDW
Enthusiast Enthusiast
432 Views
4 Replies
Message 1 of 5

How to burst a polyline drawn by Polyline Fillet LISP into lines

masumiNYMDW
Enthusiast
Enthusiast

Hello!

I'm an AutoLISP beginner and wanted to ask you how I can  convert a polyline drawn by the PLF LISP into lines. 

 

It would be great if someone can add the bursting command at the end of this code.

Thank you!

 

(defun C:PLF ()
(command "_PLINE")
(while (= 1 (getvar "cmdactive"))
(command pause))
(command "._FILLET" "P" "R" 100 "L")
(princ)
)

0 Likes
Accepted solutions (1)
433 Views
4 Replies
Replies (4)
Message 2 of 5

pbejse
Mentor
Mentor
Accepted solution

You mean EXPLODE?

(defun C:PLF ()
(command "_PLINE")
	(while (= 1 (getvar "cmdactive"))(command pause))
  
(command "._FILLET" "P" "R" 100 "L")
(command "_explode" (entlast))  
(princ)
)
0 Likes
Message 3 of 5

Kent1Cooper
Consultant
Consultant

@masumiNYMDW wrote:

.... how I can  convert a polyline drawn by the PLF LISP into lines. ....


In that and the Topic heading, do you really mean into Lines specifically?  After the Fillet part, assuming the lengths of the Polyline segments are appropriate to the radius, there will be arc segments in the Pollyline [and there could be even before Filleting], and Exploding will convert it into Lines and Arcs.  If you really want only Lines, something else would be needed to break down the Arcs into multiple Lines, and some criterion would be needed about how long or short they should be.

Kent Cooper, AIA
0 Likes
Message 4 of 5

masumiNYMDW
Enthusiast
Enthusiast

Sorry my terminology was confusing. I wanted to explode into lines and arcs.

I got it! Thank you!

0 Likes
Message 5 of 5

masumiNYMDW
Enthusiast
Enthusiast

It's exactly what I wanted and I found it very simple!

Thank you!

0 Likes