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

    Hello, and is it possible to do this? (long, sorry)

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 4 Posters 650 Views 4 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.
    • T Offline
      tooold
      last edited by

      Hi -

      I'm an apprentice woodworker with two kitchens and several bathrooms to build. It's a solution to unemployment - don't pay others to do things if you have the time and are foolish enough to volunteer.

      Anyway, I've created models for everything in Sketchup, with all the components properly named. I'm using the awesome cutlist plug in made by Steve in NZ. So, I take my list down to the local building materials store (I'm in France, but I'm American, which leads to an ongoing metric/US measurements brain war inside my head...), and I find out that plywood doesn't come in 18mm thickness, it comes in 19mm, and it's not 6mm, it's 5, etc. etc. etc.

      Now, I'm aware that nominal thickness isn't always exact, but I do know that with fully inset cabinet doors, the possibility of a 2mm gap won't work. So, I need get the materials, see what the real measurements are, and then go back into what has become a very complicated model and change the thickness of every single component. Rather than spend the next couple of days with the push/pull or scale tool, here's my question:

      Is there any way to globally search for and change dimensions? In other words, find every instance where a component is 18mm thick and change it to 19mm?

      I'm not sure if this is the right forum, but hopefully someone can help.

      Many thanks!

      Myles

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Hi Myle and welcome!

        I'm not sure (although would guess that YES) if it can be done with a plugin. To make you surely get the answer, I can move your topic into the Ruby Discussion forum below.

        Gai...

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

          @gaieus said:

          Hi Myle and welcome!

          I'm not sure (although would guess that YES) if it can be done with a plugin. To make you surely get the answer, I can move your topic into the Ruby Discussion forum below.

          Yes, thanks, Gaieus!

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            Done (I also saw that you'd asked the same in the woodworkers forum where someone suggested something I didn't go after)

            Gai...

            1 Reply Last reply Reply Quote 0
            • R Offline
              RickW
              last edited by

              I think a semiautomatic would be the best bet. 😄

              You would have to go into the component, but with the tool active, a single click on each face would change the thickness. The reason it isn't likely to be a good fully automatic script (at least not with a quick turnaround) is that it would be difficult for a script to determine which face should do the moving.

              But a "click the immobile face" script would be fairly easy. A webDialog would give you the means of inputting the desired dimension and a "maximum range" outside of which, no action would be taken (to prevent a 1m void from becoming 18mm wide). It could also have a toggle for "click the face to move" if that were useful.

              #THIS IS JUST AN OUTLINE.  COLLABORATION WELCOME...
              
              require "sketchup.rb"
              require "select.rb" # a library file from Smustard for selections
              
              class FaceMover < SelectSingle
              
                def main(item,view)
              
                  return nil unless item.typename == "Face"
              
                  # GET THE FACE NORMAL, THEN LOOK "BEHIND" IT FOR THE OPPOSITE FACE
              
                  # CHECK THE DISTANCE TO THE OPPOSITE FACE, AND COMPARE WITH THE DESIRED DISTANCE
              
                  # CHANGE THE FACE VERTEX POSITIONS IF NECESSARY
              
                end
              
                def showDialog
              
                  # CREATE WEB DIALOG
              
                  # CREATE CALLBACKS WITH DISTANCE INPUTS
              
                end
              
              end #class FaceMover
              
              # CREATE CODE FOR MENU
              
              

              RickW
              [www.smustard.com](http://www.smustard.com)

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

                Boy, RickW, you just took a quantum leap out of anything I understand... 😆 But thanks!

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  Hi Myles,

                  It sounds like some Dynamic Components would be perfect. You say you are already using Components, right?

                  Are you using the Free or Pro version?

                  Hi

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

                    @jim said:

                    Hi Myles,

                    It sounds like some Dynamic Components would be perfect. You say you are already using Components, right?

                    Are you using the Free or Pro version?

                    Using the free version. I've been meaning to check out the Pro to see how much, and how much better. As I mentioned, I have a big project to do, so anything that makes it more effective, easier, or less time-consuming would be a plus.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      Myles,

                      I'd be willing to create a Dynamic Component for you to try if you can send it to me with an explanation. You could also upload the Component here, if you'd like.

                      Hi

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

                        @jim said:

                        Myles,

                        I'd be willing to create a Dynamic Component for you to try if you can send it to me with an explanation. You could also upload the Component here, if you'd like.

                        Jim, that's a very nice offer. I'll see if I can upload something here - it would be very simple.

                        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