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?  
Thanks in advance. 

Comments

  • Member, OS Professional Posts: 262 ✭✭✭
    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: 5,838
    Values have units so all terms in an equation must be of the same type such as length. 
    Senior Director, Technical Services, EMEA
  • Member, OS Professional, Developers Posts: 2,055 ✭✭✭✭✭
    @glen_dewsbury
    @todd_hammer272

    If you use #thickness + .03mm and give the 0.03 value units, it will work.
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • Member, OS Professional Posts: 262 ✭✭✭
    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: 2,055 ✭✭✭✭✭
    @glen_dewsbury
    I find that having units helps me get correct logic...
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • Member, Developers Posts: 505 EDU
    You can also do this; make your variables unitless. Then you can use (#x + 1) mm or (#x + 1) inch
  • Member Posts: 2
    Hello all,
    Don't you know if its possible to use parameters as part of equation for another parameter?
    Example:
  • Moderator, Onshape Employees Posts: 5,838
    @on_sema2 remove the =
    Senior Director, Technical Services, EMEA
Sign In or Register to comment.