"Close Opens" script not working
-
I have progressbar.rb, sketchup.rb and just bought "close opens", but it simply won't work, no matter what I do. It won't even show the progress bar. My dual core CPU is being 50% used, so I guess it's running, but after around 15 minutes I got bored of guessing if it's working or not so I simply killed SU. The model is fairy simple, actually. Here it is:
Any idea of why it's not working?
-
Open the ruby console and see if it gives any errors when you run the script. Then post the errors back here if there are any,
Chris
-
Hi, Chris.
There's nothing at all. Nada. SU simply plays dead with "close opens".EDIT:
I discovered that it does run when you select only a tiny portion of your drawing (a few lines)... which pretty much defeats its purposeEDIT:
Ok, I achieved my goal of almost completely cleaning up a CAD import and creating the necessary faces with the following sequence:- Extend Close lines (runs pretty fast)
- Delete stray lines script
- Manual clean-up of not-so-tiny stray lines
- "Close opens" script applied surgically in small parts where I already know it is needed
- Make faces script
I just wish there was a more automagic way...
-
miguel,
smustard has now a forum and if you state your case there they probably will comment on it.
i have had close opens for long but it never worked effectively for me.
-
It took me 10 minutes to fix it 'manually' - it's sometimes quicker than a script (heresy from a scripter !). However, I did use scripts to help with the tweaking. Frankly some of the 'mess' was beyond scripted fixes...
-
Select all and run the 'make faces' script. It faces many edges that form a loop so I know they are all joined and OK.
-
Draw in a few diagonals across unfaced corners to see if they face. Many do - I erase the un-needed diagonals.
-
Looking closer at those that don't I see that the steps on the inner curve have edges that stop ~1mm/2mm short of the segmented arc. Using K-Tools Make-T I extend these edges to the arc and they face OK.
-
Still a few reluctant areas to face. Draw a few diagonals and most face etc.
-
All edges appear faced so it looks like they are OK..
-
Changing the Style to show 'profiles' I find that some edges show thicker as they are still 'loose' and without faces. I zoom in to see what's wrong - some are extra lines very near others that are faced - I delete them - Some are pairs of arc segments that form a tiny face <1mm wide - I delete both and their faces disappear, I redraw one line back in and the faces are remade: sometimes a quick temporary diagonal makes it face and assure me the edges are continuous: usually it's ~1mm gaps at one end so it over lays a face without splitting it - again K-Tools Make-T fixes them easily. Note that the outermost loop is heavier as it is a single edge profile as expected...
-
The two circular rooflights were the worst mess - 24 segment circles for a 20 segment 'cone' and most of the glazing-bars lines either overlapped or stopped short of the arcs; also the circles were broken by these lines into useless bits of arc or edge. The quickest was to remake them. I put a point at the centre of the inner circle and put that point and circle into a group, I changed the entity info of the circle to 20 segments and rotated it so it was correct compared with the radial glazing-bar lines location. Using 'offset' on the circle I made the various circular forms. I then over-drew on glazing bar using construction-lines to ensure I snapped to the arcs' intersections and not the old lines below. I then radially copied [Rotate+Ctrl] the bar's lines x19 to form the shapes required. These all faced first time. Coming out of the group-edit I selected all the original geometry by fence and then deselected the included group by using ctrl+shift and dragging a fence over its centre-point marker. I deleted the original geometry. I made an arc centre-point for the other rooflight, then I copied the group by Move+Ctrl using the centre-points as snap-points. The copied group was identical to the geometry below it (good - no need to adjust or rotate it etc !). I deleted the geometry below it as before and then exploded both groups. I finally deleted the temporary centre-points. Now the rooflights are drawn correctly - it was MUCH easier to re-do them than trying to fix what had come in from the CAD plan - which was frankly too problematical to sort out...
-
Done ! Save.
[Note: you might need to re-layer some of these re-drawn bits - alternatively I recommend that you move all geometry on Layer0, make a component of the whole thing, and put that onto its own layer. Purge the Layers to tidy the model]
Took me as long to write this as it did to do it...
-
-
Ecuadorian, I'm getting the same behavior with your model - just a beach ball in my mac with your model. I'll continue this on the smustard forum. Right now I'm running an older version of SU 7 - I need to upgrade that first. Thanks for bringing this up. Your model is not that big - this should not be an issue.
Todd
-
Thank you, TIG. There was a small problematic part I could not handle, so I copied it from your cleaned-up version. And you're right... sometimes I spend too much time looking for a script to automate a task or a 3d warehouse model that suits my needs, when I could have done it manually in half the time.
But I highly recommend "extend close lines". It really saved me time with this drawing.
And Todd, thank you for checking out this odd case. I'll continue in the Smustard forum.
Advertisement