Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
2. Need support? Ask a question to our Community Support category.
3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
4. 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.

# Simple + and - in an equation. Why doesn't this work?

Member Posts: 2
I'm trying to use a simple + in a dimension equation and its not working.
I've set a variable #thickness
My simple equation I'm putting in a dimension:   #thickness+.03

The following works:  #thickness/2

+  and - doesn't seem to work.

What am I doing wrong?
Tagged:

• Member, OS Professional Posts: 262 PRO
Interesting. I just tired the function out and NO it doesn't work.
#x+#y works but #x+1 gives an error.
That was unexpected. Been using calculated dimensions a fair bit but only with variables.
• Moderator, Onshape Employees Posts: 4,160
Values have units so all terms in an equation must be of the same type such as length.
Director, Technical Services, EMEAI
• Member, OS Professional, Developers Posts: 1,993 PRO
@glen_dewsbury
@todd_hammer272

If you use #thickness + .03mm and give the 0.03 value units, it will work.
mb - draughtsman - also FS author: View FeatureScripts
• Member, OS Professional Posts: 262 PRO
Thanks.
Just checked what happens when "number" is used for variable instead of "length" and the problem goes away.
Current system units are placed for the whole result. #X+1 becomes (#X+1)mm in a dimension.
• Member, OS Professional, Developers Posts: 1,993 PRO
@glen_dewsbury
I find that having units helps me get correct logic...
mb - draughtsman - also FS author: View FeatureScripts
• Member, Developers Posts: 500 EDU
You can also do this; make your variables unitless. Then you can use (#x + 1) mm or (#x + 1) inch