Lines to Polyline

Lines to Polyline

redasobeh
Advocate Advocate
12,079 Views
10 Replies
Message 1 of 11

Lines to Polyline

redasobeh
Advocate
Advocate

I have some lines, polylines, and arcs,

I cannot convert them all to one polyline,

I try all the tricks I know, but it still isn't working!

Attached CAD File...

0 Likes
Accepted solutions (1)
12,080 Views
10 Replies
Replies (10)
Message 2 of 11

imadHabash
Mentor
Mentor

Hi,

These lines do not have the right conditions to convert for polyline. Click on below image to see what i mean.

 

PL.gif

  • PEDIT ( Join ) ... Adds lines, arcs, or polylines to the end of an open polyline and removes the curve fitting from a curve-fit polyline. For objects to join the polyline, their endpoints must touch unless you use the Multiple option at the first PEDIT prompt. In this case, you can join polylines that do not touch if the fuzz distance is set to a value large enough to include the endpoints.
  • PEDIT command. >> Click <<

Imad Habash

EESignature

Message 3 of 11

TheCADnoob
Mentor
Mentor

in addition to @imadHabash observations, it looks like you are pretty far from the origin. This can cause issues. Is there a reason to be using such large number far from the origin? 

 

TheCADnoob_1-1750355892720.png

https://www.autodesk.com/blogs/autocad/working-large-coordinates-in-autocad/

CADnoob

EESignature

Message 4 of 11

redasobeh
Advocate
Advocate

Does that mean there is no way to join them into a single polyline?

0 Likes
Message 5 of 11

redasobeh
Advocate
Advocate

*Is there a reason to be using such large number far from the origin?

 

I don't know.

I try every method I know to join these lines and arcs, but all are useless.

0 Likes
Message 6 of 11

j.palmeL29YX
Mentor
Mentor

@redasobeh wrote:

Does that mean there is no way to join them into a single polyline?


Correct, without some repairs there is no way. 

 

1. the green arc is drawn at the wrong Z-value. (image_01)

 

Image_01.png

 

 

2. The cyan arc and the blue polyline don't touch each other (Image_02)

 

 

Image_02.png

 

 

3. The objects don't share the same XY-plane

=> So you can never join all 4 objects to a polyline

 

 

If you repair the drawing errors I mentioned above you could consider to convert to a 3DPolyline. But this object type (3DPoly) must not include arcs. So you have to substitute the arcs by a bunch of short line segments (as you have done in the blue polyline). Only this way you have a chance to get ONE object (a 3DPoly) for the curve.

 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 7 of 11

redasobeh
Advocate
Advocate

 

Why, when I try to reset the values ​​of the Z to zero for all these objects, I notice that they disappear and their positions change!

Is it supposed that if the value of the Z of a line is changed, this will affect its position as x and y?

0 Likes
Message 8 of 11

j.palmeL29YX
Mentor
Mentor

@redasobeh wrote:

 

 I try to reset the values ​​of the Z to zero for all these objects,


Hmm, I don't know what you did and how, but because the arcs are rotated in the 3Dspace that makes no sense for me. 

Attached a suggeston how I would do that. 

 

 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 9 of 11

TheCADnoob
Mentor
Mentor
Accepted solution

edit: response removed, i had wrong file...

 

If you don't need the 3D elements and just want a 2D line;

 

My suggestion is to convert the ars to polyline using PEDIT. 

 

Next use the FLATTEN command to get rid of any Z values (getting rid of hidden lines)

 

Next re-attach end points

 

Then use OVERKILL command

 

Then use JOIN command

 

 

CADnoob Ellipse Arc Polyline Join.gif

CADnoob

EESignature

Message 10 of 11

redasobeh
Advocate
Advocate

Thank you very much,

I appreciate you.

 

0 Likes
Message 11 of 11

redasobeh
Advocate
Advocate

Thanks so much,

very very useful.

Done.

Thank you again.

0 Likes