Dynamic cabinet door
-
Using SketchUp Pro 2014
I'm attepting to create a cabinet door that SketchUp will let me adjust & scale/stretch to fit on any cabinet without modifying the material thickness & widths of the rails & stiles. I've added the formulas to keep the material dimensions fixed & it seems to be working.
However, my main issue is with positioning. I've modeled a 5-piece flat panel Shaker door (attached image) telling it to be tight together, but the pieces won't seem to follow along. The leftmost vertical member is set to be at 0,0,0 on the XYZ but clearly is way off the mark. As well, the other individual components seem to be off track in relation to the rest of the door members.
It's vital that the final door position is at 0,0,0 in positive space for it to properly work in our production software, Mozaik. Can I get some help on this? Thanks
-
You can toggle to show the component axes in the preferences, maybe your local origins are not at the desired positions? (It's hard to tell from the image since there are no formulas visible...)
-
In general..
Pick a piece that will be your "anchor." In your case, it will probably be the left stile. Set the X, Y and Z position to 0. Use =0 which is a formula (you command the position to be 0!)
X: =0
Y: =0
Z: =0Then, position your next piece relative to the anchor. Perhaps the bottom rail. Would be something like:
X: =LeftStyle!X + LeftStyle!LenX
Y: =0
Z: =0and so on.
Once a piece is positioned, you can use it to anchor other pieces.
-
I realized after a bit of tuning, the horizontal parts that are showing out of whack are copied parts of the vertical pieces, and in this case the XYZ values changed with my rotation of the pieces to become horizontal members. And as such, the parts were showing their own axes position as the entire door entity... had me quite confused.
I did a 'Change Axes' command for each component separately and then when I modified the component attributes 'Position' section they went into their proper place.
Crazy
-
Thanks Jim for the work-around. I've definitely commanded the pieces to the "0" position using XYZ "=0". I essentially fixed the problem with Cotty's method of re-doing the local origins of the components.
However, not that the pieces are back I wonder if you guys can offer info for scaling. I'd like to door to be able to scale & move pieces to fit a cabinet. Meaning, if I change the width of a cabinet, I want to tell the program to move the left & right stiles, and the scale the rails to fit the new width. Similarly, if I change the height I want SketchUp to move the rails to fit & scale the stiles to their new heights.
Could use some genius on this issue!
Advertisement