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.

Query Finder (A new way to automate Onshape!) 🆕

MichaelPascoeMichaelPascoe Member Posts: 2,333 PRO
edited May 20 in FeatureScript

.

CadsharpSpin.gif CADSharp is introducing a new way to automate Onshape!
Actually, this isn't new, but it has never really been easily available for all users. (no coding required)
.

Query Finder
Save and use selections across features and even across part studios.
Use this functionality to automate your downstream selection process.

.

OppositeDirection.png Query Finder compatible features (More features to be added to this list!)
(Note for developers)Feel free to put the query finder in your own custom features. See (this example) of how to do it.

.

How to use the Query Finder:

(Step 1) Use the SetQuery.png Set query attribute feature to make a selection that you want to save for later.
This will create a variable with the name of your attribute which you can use downstream.

Note: Query Finder doesn't require you to set an attribute, you can change the QF search type to the following types of searches.

Supported search types include:

  • Everything: Searches the entire part studio.
  • Attribute: Searches only entities with the specified attribute attached to them. Easily set with the Set query attribute feature.
  • Feature: Searches selected features in the tree for specified entities.
  • Property: Searches only entities with the specified property and property value.
  • Identity: Searches entities that have had their identity set.
  • Transient ID: Searches for a specific transient id.

(Step 2) Click on the OppositeDirection.png Query Finder button to enable the query finder.

(Step 3) Input the selection variable that you created earlier in the tree. You could also type this attribute name manually like this: "toColor"

Query Finder Example.gif

.


Learn more about the Gospel of Christ  ( Here )

CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴

Comments

Sign In or Register to comment.