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.

Options

PSA: New additions to the FeatureScript Standard Library

Alex_KempenAlex_Kempen Member Posts: 244 EDU
edited June 2021 in FeatureScript
If you aren't in the habit of regularly browsing the Standard Library Source or the Standard Library Documentation, you might have missed the addition of two new functions to the Onshape standard library in the latest Onshape release, isQueryEmpty and areQueriesEquivalent. (I guess they weren't deemed worthy of a mention in the release notes?)

isQueryEmpty is particularly notable since it performs better and is more streamlined than the old method of using evaluateQuery(context, myQuery) == [] to check for empty queries. So it's definitely something worth using moving forward!
CS Student at UT Dallas
Alex.Kempen@utdallas.edu
Check out my FeatureScripts here:



Comments

Sign In or Register to comment.