3DPrintCAD Open the app

3DPrintCAD › Guides › Remove holes tool

Remove holes from an STL file - then add bolts and nuts

Old screw holes in the wrong place, the wrong size, or for screws you don't have? Fill them: Remove holes finds every round hole in a body - a counterbore and the screw hole under it too - and fills it with solid material. Then the Bolt generator puts new holes for a bolt and a nut exactly where you want them. The example is a Parkside battery adapter STL with four counterbored screw holes, turned into a part that bolts on with four M3 bolts and nuts.

Open 3DPrintCADNo account · nothing to install · runs in your browser
The battery adapter seen through, its old holes filled, with four M3 bolts and hex nuts placed through it where the holes were

Watch the tutorial

The whole job in under three minutes, with subtitles: the adapter's four counterbored screw holes filled, then four M3 bolts with nuts put in their places and cut in. Watch on YouTube ↗

1Import the STL

Start a new project and click Import in the toolbar (or drop the file on the bed). STL and 3MF files work. The adapter is 72 × 78 × 16 mm. It has four screw holes, each a Ø 7 mm counterbore 12 mm deep over a Ø 3 mm hole through the last 4 mm.

The imported battery adapter on the bed with its four round screw holes, the Remove holes panel listing them
The adapter with its four counterbored screw holes.

2Open Remove holes

  1. Click the body to select it.
  2. Click Remove holes in the Body card (after Push / pull face).

The panel lists every straight round hole in the body, the widest first, with its diameter and depth - here four Ø 7 counterbores and four Ø 3 holes under them. Move the mouse over a row and that hole is marked in the view.

The Remove holes panel: four Ø 7 holes 12 mm deep and four Ø 3 holes 4 mm deep, each with a Remove button, and Remove all 8 holes

3Fill a hole - biggest first

Move the mouse over the body: the round hole under it lights up, its edge marked on the circle. Click it and it is filled.

A hole in a hole - a counterbore for a bolt's head over its screw hole - goes from the biggest to the smallest. The first click fills the Ø 7 counterbore and leaves the Ø 3 hole open, now running up through the fill. Click again and the Ø 3 hole is filled too, so the hole is gone.

The mouse over one of the counterbores: the hole lights up blue
The hole under the mouse lights up.
After the first click the counterbore is filled and only the small Ø 3 hole is left
First click: the counterbore is filled, the Ø 3 hole stays.
After the second click the hole is completely gone
Second click: the hole is gone.

4Remove all

Remove all fills every hole in the list at once - each counterbore together with the screw hole under it - in one undo step. Click Done: the adapter is one solid block, flat on the top and underneath.

The adapter with all holes filled, seen from above
The top: no holes left.
The adapter seen from below with all holes filled
Underneath: filled too.

5Put bolts and nuts in their places

Now new holes, for M3 bolts with nuts, in the places of the old ones. With nothing selected, click Bolt in Generators.

  1. What goes in it: Bolt + nut is already chosen - a clearance hole, the bolt's socket head sunk in at the top and a hex nut in a pocket underneath. M3 is the starting size; pick another in Size.
  2. Click Click a body's surface…. X-ray turns on, so you see inside the part.
  3. Hold Alt and click where the first hole was. With Alt the bolt goes exactly where you click. Without it, it snaps to whole millimetres from the face's edges. The red lines and labels give its distance to the two nearest edges, and To edge 1 / To edge 2 take a typed distance.
  4. Tick Through the whole body: the hole is as long as the part is thick there - 16 mm - so the nut lands on the bottom face.
  5. Click + Add another bolt and click the next place. Repeat for every bolt. Click one of them in the view to move it again.
What goes in it: Bolt + nut chosen, with Bolt no nut, Into plastic, Heat-set insert, Nut trap and Through hole
Place it on a body: Through the whole body (16 mm) ticked, drag steps, the distances to the two edges, turn and sink, and Add another bolt
Seen from above through the part: four bolts with nuts at the four corners where the old holes were
Four bolts where the old holes were.

The panel's drawing shows the hole you will get: the head's pocket (Ø 6.4 × 3.2 mm), the Ø 3.6 mm clearance hole and the nut's pocket (6 mm across, 2.6 mm deep).

The four bolts and nuts seen through the part from the side
See-through bolts and nuts in the preview.
The cross-section drawing: a 16 mm part, the head's pocket Ø 6.4 × 3.2, the Ø 3.6 hole and the nut's pocket 6 × 2.6

6Cut them in and check

Click Create 4 bolt holes. You get four Hole bodies in the part. Click Cut them in now in the message, and they are cut into the adapter. The result is one watertight solid, ready to export.

The finished adapter from above: a pocket for each bolt's head
On top: a pocket for each bolt's head.
The finished adapter from below: a hex pocket for each nut
Underneath: a hex pocket holds each nut.

To look inside, click Cut by the view buttons, choose Y, type the hole's position (12) and Flip side: the section through two of the bolts shows the head's pocket, the bolt's hole and the nut's pocket.

A section through the finished adapter: the head pocket at the top and the bolt hole running down to the nut pocket
The section view through two of the new holes.

7Good to know

Questions

How do I fill a hole in an STL file?

Import the STL, select it and click Remove holes in the Body card. Every round hole is listed; click one in the view or click Remove in the list, or Remove all for every hole at once. The hole is filled with solid material.

What about a counterbore over a screw hole?

A hole in a hole goes from the biggest to the smallest: the first click fills the wide counterbore and leaves the screw hole open through it, the next click fills the screw hole. Remove all fills both in one step.

Which holes does it find?

Straight round holes of any size, through or blind. Cone-shaped holes (a countersink), slots and square holes are not found.

How do I put a bolt and a nut where the old hole was?

Open the Bolt generator (Bolt + nut is the first type), click Click a body's surface… and click the spot holding Alt, so it lands exactly there. Tick Through the whole body, add more bolts with + Add another bolt, then Create bolt hole and Cut them in now.

Does it keep the STL watertight?

Yes. The holes are filled by joining solid cylinders into the body, so a watertight STL stays watertight and in one piece. Each removal is one undo step.

Old holes gone, new bolts in

Open the app, import your STL, and click Remove holes in the Body card.

Open 3DPrintCAD

Also see: Bolt generator, Push / pull face tool, Basic shapes and body tools and Hole pattern tool.