Hello, and is it possible to do this? (long, sorry)
-
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
-
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.
-
@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!
-
Done (I also saw that you'd asked the same in the woodworkers forum where someone suggested something I didn't go after)
-
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
-
Boy, RickW, you just took a quantum leap out of anything I understand... But thanks!
-
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?
-
@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.
-
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 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.
Advertisement