Model Scaling
Model Scaling
(OP)
I'm trying to scale a revolved model that will represent MMC and LMC conditions. Imagine a piece of tubing. I have a scale factor, but when applied, it scales everything upward or downward. I'm looking for bi-directional. For MMC conditon, inside diameters should be smaller and the od should be larger, but they aren't. Think of the tube wall getting thicker while maintaining the same mean diameter.
Scaling seems to be uni-directional. Even though you can control X, Y, and Z, it doesn't appear as though you can control it bi-directionally.
Have I lost anyone? Any suggestions are appreciated.
Scaling seems to be uni-directional. Even though you can control X, Y, and Z, it doesn't appear as though you can control it bi-directionally.
Have I lost anyone? Any suggestions are appreciated.
Christopher Zona - Product Designer
Concord, Ontario






RE: Model Scaling
-handleman, CSWP (The new, easy test)
RE: Model Scaling
Christopher Zona - Product Designer
Concord, Ontario
RE: Model Scaling
RE: Model Scaling
I don't seem to be having an luck. I went through the sketches and added tolerances where needed and ran the macro.
It didn't seem to respond. Nothing happened. But, I also didn't get any erro messages. I'm just wondering, we are still on SW2005. Was your macro written after that?
Christopher Zona - Product Designer
Concord, Ontario
RE: Model Scaling
-handleman, CSWP (The new, easy test)
RE: Model Scaling
Thanks for the help, but unfortunately this code was witten for 2006, which won't work for me.
I'll try to figure something else out.
Regards,
Christopher Zona - Product Designer
Concord, Ontario
RE: Model Scaling
Where is it coming up with an error? The SW API didn't change a whole lot between '05 and '06. Go into Tools->References and checkmark the 2005 versions of any libraries that show up as missing. Then try to run the macro and let me know what line it comes up with an error on. I'd be very surprised if it's not easily modifiable to run in 2005.
-handleman, CSWP (The new, easy test)
RE: Model Scaling
Here's the missing library information.
Christopher Zona - Product Designer
Concord, Ontario
RE: Model Scaling
There are two possibilities I'm thinking of. One is that 2006 introduced a new version of some function. When they do that, they just stick a 2 on the end of the name and add some extra functionality. The older version usually still does what you need it to, you just have to switch the code to use the old version.
The other possibility is that at some point SolidWorks started including that Constant type library. It lets you use predefined named constants in your code for readability rather than having to put in just a number. I can't remember when that change was made.
Either of these possibilities is pretty easy to remedy.
-handleman, CSWP (The new, easy test)