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.

How to set a tolerance range for calculations in Part Studio?

he_qiu143he_qiu143 Member Posts: 7 EDU

Hi everyone,

In Onshape’s Part Studio, I’d like to control the calculation precision so that values like 1.0001 and 1.001 are treated as 1. This would help prevent minor numerical differences from affecting modeling or calculations.

I considered using FeatureScript to round values manually, but I’m wondering if there’s a better built-in way to define a global tolerance setting or default rounding rules for an entire Part Studio.

Is there a recommended approach for handling this within Onshape? Or would a custom FeatureScript be the best solution?

Thanks in advance for your help!

Answers

  • aeromorrisonaeromorrison Member Posts: 46 PRO

    I agree that this could have value. I would also like to see the same thing for assemblies where the mate precision can be controlled. For complex mechanisms, even a very small angular offset can cause mates to fail. On a product the size of an airplane where parts are also somewhat flexible these rounding differences can cost many hours of work.

  • S1monS1mon Member Posts: 3,204 PRO

    In FeatureScript there is a lot of support for "TolerantEquals" of dimensions or geometric objects.
    https://cad.onshape.com/FsDoc/library.html#tolerantEquals-number-number

  • aeromorrisonaeromorrison Member Posts: 46 PRO

    So it sounds like the potential may be there…at least for Part Studios.

Sign In or Register to comment.