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: 252 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!
Software Developer at Epic Systems
FRC Design Mentor - Team 1306 BadgerBots


Comments

  • caden_armstrong2caden_armstrong2 Member, User Group Leader Posts: 121 ✭✭✭
    Good catch! 
  • TimRiceTimRice Member, Moderator, Onshape Employees Posts: 315
    For a more detailed breakdown you can always visit our Change log: https://www.onshape.com/en/changelog/
    Tim Rice | User Experience | Support 
    Onshape, Inc.
  • Alex_KempenAlex_Kempen Member Posts: 252 EDU
    @TimRice You're not wrong, although it seems that these functions in particular didn't quite make it into the changelog, which was why I decided to post about them.
    Software Developer at Epic Systems
    FRC Design Mentor - Team 1306 BadgerBots


  • brooke_spreenbrooke_spreen Member, Developers Posts: 115 ✭✭✭
    B)
    Design Engineer | Anerdgy AG
Sign In or Register to comment.