Component Stretching Problem
-
i have made a dynamic kitchen cabinet that has a width option ranging from 12 to 24 inches, the problem i have is that its not stretching right..
the red lines show you where it isnt stretching properly (at 24")
theres no problem at 12 inches soo i cant just fix with modelling..
and heres the attributes for the drawer
y position equation is =-10+Open
im stopping the sides of the drawer from scaling and the panels of the cabinet, but the bottom of the drawer doesnt scale and the side of the drawer doesnt position correctly, please can i have a bit of help....
if you need anymore info let me know please..
-
Hi there
I don't see where you set the LenX of the Drawer component? The width (LenX in this case) needs to be set as a function of the width of the cabinet.
Something like this:
LenX; =parent!LenX - railA!LenX - RailB!LenX
-
sorry i forgot to specify that the drawer is a sub component of the cabinet and will be affected by any changes made to it...
EDIT1: Sorry i also missed your code, what does the rail a and b refer to?
-
just incase my problem isnt very clear i will upload the skp file for all to see, maybe it would get me some help thanks!.
-
does nobody know how to help me!
i really would like to fix this so please let me know if you can help....
-
EDIT: ok, I see what your describing as the problem now. I'm looking into it...
-
Your component rail6 needs to have a property thad defines its LenX.
You know the way that you have defined the sides LenX as =1cm so that the sides don't get wider when it scales...well you need to apply that same idea to EVERY component in the model, or else they will stretch like you are seeing now. Pretty much just like Jim was saying.
Is that enough to get you on your way?
-
yes but i do want those other ones to stretch, im making it so that the boards all have a 10mm thickness, the bottom of the draw isnt stretching all the way and the left side of the draw is being positioned off of where its meant to be...
there are no problems when its 12 inches wide but when i set it to 15,18,21 and 24 the stretching and placement gets more distorted as it gets higher...
as i see it setting the stretching like you say i should the i couldnt change the 12 inches to say 24 inches and it would be pointless....
-
Don't change EVERY component, just the ones you don't want to stretch. That means you have to think about each inner component and decide if it needs to stretch or not. For example, Rail6 shouldn't stretch I think. But there are others that should stretch.
Chris
-
Plus, you have a lot more work to do. You need to add position and length values for most of the components. You need to specify how much they stretch, and thier location based on how much stretching has been done.
Chris
-
Ok thankyou for all of your help..
what i just did to fix it was i repositioned the axis of a few components to get the side of the draw right and fix a few things so they dont cause anymore problems and for the bottom i set it to the length x of the back board minus 2..
ill will be fixing up everything else soon enough tho so thanks heaps...
Advertisement