Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Cannot use expression with multiple variables
Dario Mangoni
Member, Developers Posts: 15 EDU
in Drawings
I have two variables of 'length' type.
If I set a dimension as #woodWidth or #tireDiameter they both work fine,
but as soon as I use
#woodWidth*#tireDiameter
I get the message "Insert a valid expression"
Why is that?
I also tried with #woodWidth*1*#tireDiameter.
I also made sure to have same measurement units.
What's happening?
If I set a dimension as #woodWidth or #tireDiameter they both work fine,
but as soon as I use
#woodWidth*#tireDiameter
I get the message "Insert a valid expression"
Why is that?
I also tried with #woodWidth*1*#tireDiameter.
I also made sure to have same measurement units.
What's happening?
Tagged:
0
Comments
You will need to remove the units of all but 1 variable
Ex:
X=12 in
Y=2 in
Z=3 in
A=#x/in * #y/in * #z
#A=72 in
Or you can create a new variable as type 'any'
A=#x*#y*#z
#A=72 in
The example was just a piece of it.
I agree on the unit enforcement.
Thanks a lot