Multiple Variables in Single Expression
Andrew_Yoder
Member Posts: 2 ✭
So I was trying to confine the dimensions of a box I made with variables, so that the whole box will regenerate with target values by changing any one of the variables. Normally this would be easy, using just x,y, and z vairables. However, the dimensions I wanted to input outside the sketch were for the object entering a slot inside the box, so to change the overall dimension to the right size I added a variable for tolerance (that I could change later if the slot didn't fit) and then tried to make to make a composite variable that represented the whole length of the slot(): 2#tol + #length (naming arbitrary). Sometimes using 2 variables does work, but for the most part the computer doesn't recognize it as an expression. And this problem works with any name I could think of, single letters or long words. Going into the forum, tutorials, or otherwise, no one seems to have tried using this. How can I achieve making a CAD that changes itself to specifications just by editing the global variables, without using more than one variable?
0
Answers
-
-
I think based on your screenshot that your variable solW does not have units -- change the variable to "2.33 in" and you should be fine. Similarly #thic
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0 -
most of the time, if I find that I have expression that doesn't work, it's because I get the brackets in the wrong place or misstype one of the variables. It would be good to be able to expand the view of the expression to fit the text length, so you can see all the elements at once.0
-
Still no answer on this? I'm having the same problem.0
-
Jake Rosenfeld - Modeling Team0


