Author Topic: Line-consolidating routine - Flow problem?  (Read 5015 times)

0 Members and 1 Guest are viewing this topic.

ANA

  • Guest
Re: Line-consolidating routine - Flow problem?
« Reply #15 on: May 27, 2008, 02:01:43 PM »
Sorry I couldn't reply sooner. I was sick all of last week.

I'm amazed to see that Tim tossed off a complete new version of the program in one afternoon. I had been working on my failed version of it for a month. Thanks very much, Tim. When I get caught up and get some free time I'll study it and try to figure out how it works.

What about lines that are collinear and overlap. Are you going to consolidate them as well?
For my purposes there shouldn't be any overlapping or duplicate lines. If there were duplicate lines, it would be good to delete them, but I wouldn't want to delete any partially overlapping lines if any of those turn up.

I wanted this routine for cleaning up Sketchup-exported files. I like to model everything in 3D in Sketchup, and then export 2D views as DWG files (example attached). But in Sketchup's DWG export files, all lines are broken wherever they touch any other line. So it's hard to do any editing in the 2D file. They usually need some editing, especially if there were any curves in the Sketchup model.

Unfortunately, even the new version doesn't really work on those Sketchup-exported 2D DWG files. If I select a few lines at a time, it consolidates them; but if I select a large number of lines, it goes into a loop and I have to Esc from it.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Line-consolidating routine - Flow problem?
« Reply #16 on: May 27, 2008, 02:15:23 PM »
The problem with mine is that it searches the selection set, and then if it finds one to combine, it will then search the selection set again to find ones that match either new point.  It would need to have better filtering to make it faster.  The only idea that comes to mind is to have it make lists for every angle, and then it would only test those lines again, but then again it would be slow.  I let my version run for three minutes on your drawing, and it still wasn't done, so I know there has to be a better way.  I'm just not sure what it is right now.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Line-consolidating routine - Flow problem?
« Reply #17 on: May 27, 2008, 03:12:28 PM »
I did not see it mentioned, so did you try the ExpressTools OVERKILL?
Code: [Select]
Command: overkill

Initializing...

Select objects: Specify opposite corner: 927 found

Select objects:

384 object(s) deleted.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Line-consolidating routine - Flow problem?
« Reply #18 on: May 27, 2008, 03:16:22 PM »
I did not see it mentioned, so did you try the ExpressTools OVERKILL?
Code: [Select]
Command: overkill

Initializing...

Select objects: Specify opposite corner: 927 found

Select objects:

384 object(s) deleted.

This might be the reason.

I work in BricsCad (Intellicad), but this routine only uses really basic functions, so I don't think that makes any difference.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Line-consolidating routine - Flow problem?
« Reply #19 on: May 27, 2008, 03:23:46 PM »
Yep, That'll do it. :-P


 :-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Line-consolidating routine - Flow problem?
« Reply #20 on: May 27, 2008, 03:27:26 PM »
Yep, That'll do it. :-P


 :-)
You almost had me.  I thought there was a reason why that wasn't mentioned, but I had to look back.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.