Changing Sub-Components as Model Size Changes
-
I am inexperienced using GoogleSketch7 Pro. I have a need to determine quickly whether or not I can do the following in GoogleSketch7 Pro and/or Ruby.
I have a piece of equipment that is built in CUSTOM lengths. When the length of the equipment changes, various sub-components must change. For instance when the equipment goes from a 40 ft. length to a 50 foot length, the sub-components must go from a 5 hp motor, and 1.5" bearings, to an 8 hp motor and 2" bearings. It needs to change more than just the defining text. There are other parts that must change also.
I have no problem changing the length of the main component to be the length needed, however, I do not know how to CHANGE sub-components when I do this. Is this possible in GoogleSketch7 Pro? Is Ruby sophisticated enough to do this? I am just beginning to investigate Ruby, so I have no experience with it yet. I am familiar with several other scripting languages though.
Examples would be nice if you know of any.
Thanks,
Al
-
Hi,
From your info so far, you've got a Component which has 2 Sub Components containde within. You need to scale your Primary component by 20% and this scaling to apply to the sub components also.
If you use the Tape Measure tool to measure the lenght of your Primary component at 40' and then enter 50' in the VCB box everything will be scaled accordingly. But these changes affect the whole model so any other geometry will also scale.
Prevent this by bringing your Component into a separate SU window then place it back in the original!
Or have i missed this issue completely
-
rclub24:
I have repeating sub-components that must be identical as I increase the length of the parent. The idea is to have it totally change only key sub-components as the parent is lengthened without having to interact further with the drawing. Even if I can do this with DC Options it would be one step closer to what we are hoping to do.
Scaling doesn't seem like the approach I need. It seems to me that I need to have the parent component copy until I have the length required and have the sub-components change out at pre-determined lengths of the parent component. The sample models for a floor joist system or the fence do exactly what I need except change out key sub-components.
When I scale the parent component all the sub-components scale also as you indicated, and the model is no longer correct. We don't want to have to pull components out and in to another SU window as that would defeat the whole purpose of the idea. We just want to indicate that we have a 50 ft. length rather than a 40 ft length and have SU do all the replacing of sub-components without any further interaction.
I can make the parent copy to the lengths required. What I am unable to do is have the sub-components change as I do this. By the way, there are more than two sub-components that need to change, but if I can figure out how to do two, I can figure out the others as well.
Thanks again for your quick response.
Advertisement