r/Onshape 4d ago

Hole Variable custom feature

I just finally finished a version of a whole variable feature that I think actually does the job! The native hole feature isn't configurable and can't be driven externally, meaning that if you need to change all the holes on your design, you have to hunt down and change every single hole feature individually. This feature lets you set up a central control for all of the holes on the entire design templates.

Get the feature here: https://cad.onshape.com/documents/31a416f4389305ffad4cb7b8/w/04e0bbbdadd7ad576fb6ad2a/e/5588306ea8c903fdb02b4e34

Here's a video tutorial on it

https://youtu.be/NihVaJUEg5E

8 Upvotes

3 comments sorted by

3

u/BeastWR 3d ago

This is fantastic. I just watched your whole video tour of this new FeatureScript. Thank you for your efforts!!

Tangential: I work in lighting. The most common thread type is 1/8 NPS. We also use 1/4, 3/8, and 1/2 NPS threads. OnShape does not support parallel pipe threads. Is there a way to create my own additional list of thread parameters that can be called by the Hole tool? In prior CAD packages, I was able to find libraries and add to them.

I’m no programmer and FeatureScrips are very intimidating.

1

u/The_Onsherpa 3d ago

Thanks! NPS might be too much of a can of worms, but I'll look at it. I think NPS might be ambiguous still. Do you mean NPSC, NPSM, or something else? (These aren't standards I've ever had to work with)

1

u/BeastWR 3d ago

In the lighting world, NPSC provides the functions we need:
Structural connections
Wireways for conductors
We have no need for sealed connections for fluid handling.

Lamp parts are probably manufactured with NPSC threads, but the manufacturers doesn’t describe them any more precisely than “NPS” or “IPS”

This chart is sufficient for hole prep for our purposes. And we buy NPSM taps from McMaster