Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Is there an interactive query explorer?
pmd
Member, Developers Posts: 63 PRO
It would be useful to help my understanding of the various qXXXX() query functions to be able to use the UI to explore what they did. I envision a FS with a dropdown menu of most of the query functions (qLoopEdges, qVertexAdjacent, qConvexConnectedFaces etc. etc.) and some input fields.
I could then select a function from the dropdown and click on various faces, edges surfaces and see via the red debug highlight what the result was.
Has someone already done this and if so is it public?
I could then select a function from the dropdown and click on various faces, edges surfaces and see via the red debug highlight what the result was.
Has someone already done this and if so is it public?
Tagged:
0
Best Answer
-
brad_phelan Member Posts: 89 ✭✭It's easy to create. Here is a starting document for you
https://cad.onshape.com/documents/5e2dc161fab82710e1b66ffc/w/9323fbcdf0cba5f5b3ea11d2/e/6925d74fa4c87d52f9b40c1d
The feature just builds a lookup table of query types, executes the selected query and then uses the onshape debug command to visualize the result query. For example below I make a query for all faces adjacent to a vertex.
You can add more complexity as you require.
10
Answers
https://cad.onshape.com/documents/5e2dc161fab82710e1b66ffc/w/9323fbcdf0cba5f5b3ea11d2/e/6925d74fa4c87d52f9b40c1d
The feature just builds a lookup table of query types, executes the selected query and then uses the onshape debug command to visualize the result query. For example below I make a query for all faces adjacent to a vertex.
You can add more complexity as you require.
HWM-Water Ltd
https://cad.onshape.com/documents/2a0193ef47e88aa60e11f1a8/w/f5d1b2ace420c2778f309e0c/e/9f482bb28ee96bfb8f2d6874
Disclaimer - very much a work in progress.