Create a polyline from existing arcs-lines

Bill Barrows

Usenet Archive
Joined
Mar 5, 2001
Messages
8
Reaction score
0
I have a lisp routine to read a file and create a series of connected lines and arcs in my drawing. (i.e. read Gcode file for a cnc machine) I am processing each line of the file as I read it, and drawing the line or arc as specified.

How can I create a polyline from an existing series of connected lines and arcs ? (with the same Z values).

I am thinking I can count the number of entities that I created while the Z value has not changed. Then when the Z changes, convert that number of entities into a polyline.

What commands can be used to do this?

Any suggestions appreciated.

Bill B.
 
Thanks Bill Z

Just what I needed.

Bill B

"BillZ" <> wrote:

You can put the lines/arcs into a selection set as you create them. First create an empty set:
(setq ss1 (ssadd))
Then after the creation of each entity during the loop. (ssadd (entlast) ss1) When finished with the set just use the command function with pedit and join all the ents.

Bill
 
Bill Barrows said:
How can I create a polyline from an existing series of connected lines and arcs ? (with the same Z values).

What commands can be used to do this?

If you have Express Tools installed try PLJOIN command to create a polyline from selection set of lines, plines or arcs. It support also the fuzz distance.

WBR,
Eugene
 

Latest threads

Back
Top