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.
opHole Examples
Rhett_Robinson
Member Posts: 142 PRO
I thought that incorporating a hole feature within a FeatureScript I am writing would be more helpful than the same size hole extruded and cut since I want the end result to be a tapped hole. The value will always be the same since this is for a company standard. I went to the Standard Library Documentation and was almost more confused by trying to figure out what parameters are needed. Are there any good examples floating around for this?
Tagged:
0
Comments
What you might do instead is just call the actual hole() feature. I think the attributes aren't added to the faces via opHole anyway. You'd want to import the hole feature studio into your custom feature, then you can call
hole(context, id, definition);
. Look at the precondition code (the UI part) for the hole feature to understand what all of the keys are on the feature definition. Then your custom feature can create a definition to feed the hole function. The result will be equivalent to using the native hole feature, but your feature can be the one controlling the inputs instead of the user's input. If that all sounds as confusing as I imagine it does hit me up with questions, haha!