Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape, CAD, maker project and design.

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.

Multiplying variable in Dimension

neil_4neil_4 Member Posts: 3
I'm trying to define a dimension that uses two variables for instance i want the width of a box to be 

but it wont work.  Any ideas?


  • ilya_baranilya_baran Onshape Employees, Developers Posts: 781
    This is almost certainly a units issue -- #cubewidth should have length units, while #numberofcubes should be just a number.  Chances are that #numberofcubes ended up being a length, rather than a number, and so when you multiply it by #cubewidth you get an area (instead of a length).  Check the definition of #numberofcubes.  If that doesn't work, post a link to your document so that someone can take a look. 
    Ilya Baran \ Director of FeatureScript \ Onshape Inc
  • owen_sparksowen_sparks Member, Developers Posts: 1,386 PRO
    #width = yada-yada

    Also might need some units depending on what the other variables are set to.

    Production Engineer
    HWM-Water Ltd
Sign In or Register to comment.