Align multiple lines at once

Align multiple lines at once

Anonymous
Not applicable
6,507 Views
12 Replies
Message 1 of 13

Align multiple lines at once

Anonymous
Not applicable

I know ALIGN and CHANGE exist but I am either doing it wrong or they don't do what I want them to.  I have exported from sketchup which breaks the lines anywhere they touch I want to fix this.  I use OVERKILL but the vertical lines are a problem.  Ones are parallel but have opposing angles (90 vs 270) sp OVERKILL sees them as different and does not join them. 

CADbrokenVerticalLines.JPG

I have FLATTENED them but that did not change anything. I could trace I know but I would like a better solution for more than getting through one project.  When I use CHANGE I have one line but all the little segments remain and I can not do the whole project at one time so I could just trace at that rate. 

 

0 Likes
6,508 Views
12 Replies
Replies (12)
Message 2 of 13

nikm42Q9N
Advocate
Advocate

So you are trying to make this one single line?

 

Overkill deletes things that are hidden under other objects it does not join things.

to join lines you need to use the join command or pedit if its a polyline.

 or you could just draw a new line?

0 Likes
Message 3 of 13

Anonymous
Not applicable

This is not the only instance of this in the drawing and it is tedious and time consuming to fix them individually. I am using this as a test case to figure out a better solution. 

 

Doesn't join make them a polyline rather than a single line? 

 

(Also I have an older CAD just JOIN is not a command.)

0 Likes
Message 4 of 13

nikm42Q9N
Advocate
Advocate

no join would make them just a single line. Pedit would turn them into a polyline witch is a line that different properties can be added to such as width anyway that allot to explain lol. but you dont have the join command so lets just forget that.

 

Im not 100% on what you are trying to do. If you could explain it like im 2 and post the file id be glad to try and help

0 Likes
Message 5 of 13

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....  Doesn't join make them a polyline rather than a single line? ....


Yes, the PEDIT command's Join option does that.  If it helps, you can do that and then OVERKILL [with the right settings]

Kent1Cooper_0-1621532272967.png

can eliminate the intermediate vertices.  EXPLODE if you want it as a Line object rather than a one-line-segment Polyline.

Kent Cooper, AIA
Message 6 of 13

Anonymous
Not applicable

@Kent1Cooper The PE was a good idea and it got all the angles to match but they are still not being cleaned up by overkill... 

@nikm42Q9N I have files from sketchup that have tons of broken lines. I am using this one as a test subject to figure out a system to get it cleaned up without having to trace/redraw the exports.  It has all these broken lines that you would expect overkill to turn into one line but it is not.  I am trying to figure out what to do to get it to work and make one line out of many over the whole drawing rather than one line at a time because that would be the same as redrawing the project. 

Angles match nwo.JPG

 
Message 7 of 13

pendean
Community Legend
Community Legend
Share your DWG file with us please.
0 Likes
Message 8 of 13

Anonymous
Not applicable

Here is a chunk to show you the problem.  Client file so I cant share the whole thing.

0 Likes
Message 9 of 13

nikm42Q9N
Advocate
Advocate

why does it have to be a single line? 

0 Likes
Message 10 of 13

Anonymous
Not applicable

Because the drawing is extremely unruly if you need to make changes when it is all broken up.  It makes everything harder to have it in pieces. 

0 Likes
Message 11 of 13

Kent1Cooper
Consultant
Consultant

Some of the successive Lines [or line segments after joining into Polylines] are ever so slightly off from being truly collinear, because some of them are ever so slightly off from being truly vertical.  I have a little routine to report the angle off the horizontal of a selected Line or Polyline line segment [or anything straight], here for one such segment that is precisely vertical within the routine's tight tolerances:

Kent1Cooper_0-1621544104977.png

But the next one up:

Kent1Cooper_1-1621544206202.png

And another one with a different deviation:

Kent1Cooper_3-1621544545307.png

 

I suggest you "quantize" the drawing to force everything to fall on the closest multiple of a grid location, even at a very small grid increment, which will get them to be truly aligned.  When I used the QALL command from >zzQUANTIZE.lsp< on it, with a quantization value of 1/16", the joined Polylines did have their intermediate vertices removed by OVERKILL.  There are other routines on that same thread, and other threads about such forcing of things to nearest grid positions.

 

 

Kent Cooper, AIA
0 Likes
Message 12 of 13

brunobiazotti
Community Visitor
Community Visitor

Hello there, I do this by sort verification that PROPERTIES allow, select lines you want to verify (plines do not works, explode then, only lines works), go to geometry tab you must to see if isn't appearing *VARIES* in the axis you want to keep, it must be the same value along the axis (ex. vertical line: start X, end X) if so will display nothing or the the same single value valid for all the lines you select. I tried to change manually for a sort of lines misaligned in series but the behavior of line depending on the misalignment it may get crazy that you cannot expected, the other axis change together to a unknown length.

 

option 2 - If you talk about lines isn't connected, this will not works...    (plines do not works, explode then, only lines works)

On JOIN allow, when lines are in a co-linear alignment, JOIN will not create nodes along the line, if do then were misalignment on it and this create nodes along the line joined. You can treat one by one, put the line in evidence by click once on it, now just click in the node you want to delete, while the node follow your mouse on screen press ctrl twice (don't hold) , then finally click wherever place on model screen. This delete one node, when you do it you can see how misaligned the line was in that segment, create a parallel xline before to take a comparative view instantly.

Message 13 of 13

j.palmeL29YX
Mentor
Mentor

@Anonymous wrote:

Here is a chunk to show you the problem.  Client file so I cant share the whole thing.


I'd clean the geometry using the following workflow: 

 

(view in My Videos)

 

 

Depending on your current complete geometry, you may need to adjust one or two settings. 

 

 

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

0 Likes