Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Custom Feature - Batch Hole to Slot

ted_zhangted_zhang Member Posts: 1 EDU

I made a FeatureScript custom feature for converting selected circular holes into slotted holes without editing the original sketches.

Use case
Mechanical plates, motor mounts, bearing plates, gearbox plates, laser/waterjet/CNC parts, and adjustment slots.

Very handy when it comes to first version prototypes where one have already modeled out fixed holes but need extra wiggle room for real world adjustment.

Good for people who do not intentionally draw slots and found themself in situation like me where I do not want to manually change every hole in sketch to a slot…

How to use?

  1. Select one or more circular hole faces or circular hole edges
  2. Select a slot direction reference.
  3. Choose Extra travel or Total slot length.
  4. Choose Symmetric, One-sided positive, or One-sided negative.
  5. Optionally override slot width.
  6. Run the feature.

Supported

  • Multiple holes in one feature
  • Different hole diameters
  • Extra travel mode
  • Total slot length mode
  • Through-all cuts
  • Direction projection perpendicular to hole axis

Current Limitations

  • Normal solid parts only
  • No sheet metal-specific support yet
  • Through-all only for now
  • One shared direction reference for all selected holes

Document Link
https://cad.onshape.com/documents/016fdc4dd72a7503f65dd9d5/w/4d50356db7ac76fe8d9cc435/e/96dd9f0c6b24cbad90da830d?renderMode=0&uiState=6a443f330366add290311e05

First time publishing a featurescript. Any feedback is welcomed, especially on edge cases or improvements.

Screenshot 2026-06-30 181736.png

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.