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.

Bug: Variable does not work in an expression for extrude length

saladsamurai_saladsamurai_ Member Posts: 1
Expressions using variables work in sketches but not in features like extrusions it seems. 

For example (#width/2 + 2) works as a sketch dimension but not for an extrude length.

The extrude length will however handle "single term" expressions.  For example:

all will work, but #width + 2 will not.

Is this a known bug?



  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 993
    This is not a bug, it is a units mismatch.  #width is a length and 2 is a number, so they cannot be added.  What will work is #width / 2 + 2 in
    Ilya Baran \ Director, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.