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.
Querying and extruding rectangles
FeatureScript noob here: I've spent hours trying to understand how to query and extrude faces on a sketch. I have a set of rectangles inside a larger rectangle, and I want to find and extrude the inner rectangles and outer rectangle to different heights. I have no problem getting the outer rectangle using this: var entities = qSketchRegion(id + "sketch", true);
But I can't figure out how to query the inner rectangles. Or, to be more precise, when I try to operate on what I believe is a valid query, I get empty array errors.
Here's the sketch in question. It's named "sketch1." Any tips on how to find and extrude all the faces?
Comments
Custom FeatureScript and Onshape Integrated Applications
This worked. Thanks @Caden_Armstrong. Gives me a better sense on how to use and perform set operations on queries.