PSA: New additions to the FeatureScript Standard Library
Alex_Kempen
Member Posts: 260 EDU
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!
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 10553 Orange Overdrive
Tagged:
8
Comments
-
Good catch!
0 -
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.1 -
@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 SystemsFRC Design Mentor - Team 10553 Orange Overdrive2
-
Design Engineer | Anerdgy AG0



