Drawer box depth won't change along with cabinet depth
-
Hi,
I've designed a 3-drawer base cabinet with working (animated) drawers. Ive got the formulas set up such that the drawer box depth is 3" less than the overall cabinet depth for any cabinet depth of 24" or less. For any cabinet depth over 24", the drawer box depth is designed to stay at 21". Cabinet depth is an attribute determined by user input.
here's the problem - while the upper drawer box resizes itself appropriately along with any change in cabinet depth, the middle and bottom drawers don't follow suite, even though their formulas were entered and set up the exact same way as the top drawer. here is the model for you to download and look at in SketchUp:
Smithport_H-Series_3DB_exp_1.skp
the model will initially open to a base cabinet depth of 24" (we're looking at the backside here, and you'll see why in a minute):
if you open the component options box and change the depth of the cabinet to 18", you'll notice that the top drawer box resizes appropriately, but the middle and bottom drawer boxes remain stuck at 21" deep and end up poking through the solid back of the cabinet:
i cannot for the life of me figure out why the middle and bottom drawer boxes won't resize according to a change in overall cabinet depth, particularly when the top drawer works exactly as it should. i can't find any syntax errors or circular formulas in my excel code, nor can i find any formulas that try to reference a grandparent or grandchild component (everything references a parent or child component as far as I can tell). the thing that makes this issue so difficult to track is the fact that when I compare the excel code for the top drawer (and its drawer front and drawer box sub-components) and the excel code for the middle and bottom drawers (and their drawer front and drawer box sub-components) side by side, the code is identical, save for the names of each drawer and their sub-components. I'm going crazy here b/c I feel like I'm trying to track a ghost...any help really would be appreciated.
TIA,
Eric -
Hi Eric
you have used the same groups for drawers 2 & 3, if you click into the attributes of say drawer 2 side, you will find that it is red , it refers to drawer 1, You need to change the reference of the group, if they were components then you would have to make them unique.
since its most likely you want to reuse certain elements again rather than making each unique or updating the reference, replace the reference with parent! instead of the parent name, then the "child" refers to any parent rather than any specific one.
This is they important when you want to swap components, say a door type, or knob.
Cheers
Philip
-
PROBLEM SOLVED EVERYONE
it turns out i didn't dig deep enough into the layers of parts used to compose the drawer boxes . For instance, the groups that comprised the middle drawer box component, dbox_2 (the left and right members, the front and back members, and the bottom), contained references to the top drawer box component, dbox_1. As soon as I changed all the "dbox_1" references to "dbox_2," the middle drawer box started resizing according to overall cabinet depth as it should. Obviously the same worked for the bottom drawer box, dbox_3. as you might have guessed, the reason the groups that comprise dbox_2 and dbox_3 had references to dbox_1 is b/c I created the middle and bottom drawer boxes by making copies of the top drawer box, dbox_1.
Advertisement