Login

View Full Version : Stretch function random value?



Ant59
2009-10-29, 02:40 PM
I have created a script for auto-resizing cupboards using the stretch command. However, for some reason it causes the cupboard to become skewed. In the coordinates for the displacement, I have a variable (user-inputted for the current width), and then 0.0, 0.0 for Y and Z.

Though, when I run this script the coordinates always become 20., -30.0, 0.0 when I use it on cupboards of sizes less than double the original (it works as it should otherwise).

Thanks in advance for any help!

Opie
2009-10-29, 02:51 PM
Have you thought about Dynamic Blocks for your cupboards?

Ant59
2009-10-29, 03:10 PM
Yes but it's not what we were looking for. It would take way too much time to change the entire catalogue.

alanjt
2009-10-29, 08:05 PM
Yes but it's not what we were looking for. It would take way too much time to change the entire catalogue.
...but in the long run, you could save a lot of time with the utilization of Dynamic Blocks that can stretch. However, I'm sure you want to go with the script. Why don't you post it and we might can figure something out.

RobertB
2009-10-31, 09:24 PM
Are you using the "_none" OSnap override before you pick/specify any point? Running OSnaps can cause this issue when there are underlying objects.

Ant59
2009-11-03, 02:53 PM
OMG. Thank you so much Robert. I hadn't even thought of that! Doh.

You're brilliant!