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.
[FeatureScript] How to extrude outermost regions of text sketch without including interior cutouts?
evan_johnston799
Member Posts: 3 ✭
I'm trying to extrude arbitrary text using FeatureScript, but I can't figure out how to avoid extruding the holes in the middle of some letters along with the positive space of their outlines. For example, I can only extrude "O" as a solid cylinder, but I want the interior to be empty.
I know I can use a query to select only regions I want to extrude if I have the coordinates of a point inside those regions, but with arbitrary text I won't have those coordinates for every single letter.
Is there a good way to select the outermost regions of a sketch? Is there some other approach that I'm missing?
Thanks!
I know I can use a query to select only regions I want to extrude if I have the coordinates of a point inside those regions, but with arbitrary text I won't have those coordinates for every single letter.
Is there a good way to select the outermost regions of a sketch? Is there some other approach that I'm missing?
Thanks!
0
Best Answers
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565I think you're looking for qSketchRegion(sketchId, filterInnerLoops). If that second argument is true, that query resolves to the outer entities only, not the holes in the middle, just like our extrude feature does when you select a sketch.1
Answers