Converting Wide Polylines to Polygon/Shape

Converting Wide Polylines to Polygon/Shape

Anonymous
Not applicable
7,836 Views
6 Replies
Message 1 of 7

Converting Wide Polylines to Polygon/Shape

Anonymous
Not applicable

Hi,

 

So I have a file with polylines and want to covert the wide lines to polygons. Is this possible to do in AutoCAD? 

My goal is route the outlines with an engraver. There are third party tools out there, freeware and paid, but I'd like to do this in AutoCAD if possible to simplify my workflow.

 

Example:

With line width (left). Zero line widths (right)

traces.pngtraces_zero_width.png

 

Regards,

Sagar

0 Likes
7,837 Views
6 Replies
Replies (6)
Message 2 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

not the full solution, but maybe a workflow you can go:

Start command _WMFOUT, select the objects you like to export the outlines of the wide polylines.

Then start command _WMFIN and import the file created with the above step.

 

Two steps to be done now:

  • delete some inside linework created which is not needed (diagonal lines)
  • use command _ALIGN to get it back to a correct scale

 

HTH, - alfred -

 

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 7

imadHabash
Mentor
Mentor

Yes you can... i usually use it by apploading attached lisp.

Command: POLYOUTLINE

Select objects:

Delete Original? [Yes/No] <Yes>:

 

polyline.png

 

Good Luck..

Imad Habash

EESignature

Message 4 of 7

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... 

So I have a file with polylines and want to covert the wide lines to polygons. Is this possible to do in AutoCAD? 

 

....

Here's another one.  The potential advantage it has over the one in imadhabash's post is that it will work on Polylines that include arc segments, though that may not be something you need for this kind of work.  It doesn't do non-constant width [even for straight segments] as it looks like the one imadhabash posted will, but that also doesn't look like something you need here.

 

If the rounded ends in your left image, that become Circles in the right one, are also originally Polylines with width [such as those made with DONUT and a zero inside radius], here is a routine that will turn those into Circles, and for Polylines with constant width like those, it offers the option whether to make the resulting Circle along the center or the inside or outside [what you would use in this case] edge.

Kent Cooper, AIA
0 Likes
Message 5 of 7

Anonymous
Not applicable

You are a legend, this is exactly what I needed!

0 Likes
Message 6 of 7

jrogulski
Advocate
Advocate

WOW. Great!

 

Can you modify this LISP that will overshape every segment of non-continous line type?

jrogulski_0-1604649200493.png

 

0 Likes
Message 7 of 7

Kent1Cooper
Consultant
Consultant

@jrogulski wrote:

....

Can you modify this LISP that will overshape every segment of non-continous line type?


You could try BreakUp.lsp, >here<, and then apply an outlining routine to the resulting pieces.

Kent Cooper, AIA