sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    "Close Opens" script not working

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 5 Posters 564 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      Ecuadorian
      last edited by

      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?


      sololineas.skp

      -Miguel Lescano
      Subscribe to my house plans YouTube channel! (30K+ subs)

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        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

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • E Offline
          Ecuadorian
          last edited by

          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 purpose 😒

          EDIT:
          Ok, I achieved my goal of almost completely cleaning up a CAD import and creating the necessary faces with the following sequence:

          1. Extend Close lines (runs pretty fast)
          2. Delete stray lines script
          3. Manual clean-up of not-so-tiny stray lines
          4. "Close opens" script applied surgically in small parts where I already know it is needed
          5. Make faces script

          I just wish there was a more automagic way...

          -Miguel Lescano
          Subscribe to my house plans YouTube channel! (30K+ subs)

          1 Reply Last reply Reply Quote 0
          • EdsonE Offline
            Edson
            last edited by

            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.

            edson mahfuz, architect| porto alegre • brasil
            http://www.mahfuz.arq.br

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              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...

              1. 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.

              2. Draw in a few diagonals across unfaced corners to see if they face. Many do - I erase the un-needed diagonals.

              3. 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.

              4. Still a few reluctant areas to face. Draw a few diagonals and most face etc.

              5. All edges appear faced so it looks like they are OK..

              6. 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...

              7. 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...

              8. 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...


              sololineas[1].skp

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                todd burch
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • E Offline
                  Ecuadorian
                  last edited by

                  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.

                  -Miguel Lescano
                  Subscribe to my house plans YouTube channel! (30K+ subs)

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement