---
title: "Magnet & Heat-Set Insert Hole Generator"
description: "Add precision magnet pockets and heat-set insert holes to 3D models. Features snap placement, M2-M5 presets, and boolean cutout. No file uploads."
toolId: "magnet-hole-generator"
category: "editing"
subgroup: "print-prep"
subgroupName: "3D Print Prep"
url: "https://any3d.cc/en-US/tools/magnet-hole-generator"
markdown: "https://any3d.cc/llm/tools/magnet-hole-generator.md"
---

# Magnet & Heat-Set Insert Hole Generator

Place magnet and threaded insert holes directly on model surfaces, with automatic clearance offsets and melted-plastic relief wells for clean assembly.

**Category:** 3D Model Editing Tools (`editing`)
**Subgroup:** 3D Print Prep (`print-prep`)

**HTML:** https://any3d.cc/en-US/tools/magnet-hole-generator

> Runs entirely in the browser. Files are not uploaded to Any3D servers.

## Overview

Choose between magnet pockets and heat-set threaded inserts, then click any model surface to place normal-aligned holes. Magnet holes support open press fits or enclosed cavities with automated slicer pause-height calculations; insert holes include M2 through M5 engineering standards with extra depth to prevent melt overflow. Thin-wall and puncture checks run in real time before boolean mesh export.

## How to Use

1. **Select Hole Type and Size:** Enter outer diameter and thickness for <strong>magnets</strong>, or select metric thread standards for <strong>heat-set inserts</strong>.
   - Default M3 insert settings produce a 4.2 mm diameter bore with 6.7 mm total depth.
2. **Place on Surface:** Click the part surface to generate a normal-aligned hole. Drag to slide across faces, and customize dimensions per individual hole.
   - Press Enter to deselect; subsequent settings will apply to the next placed hole.
3. **Pattern and Validate:** Select a hole and activate <strong>Hole pattern</strong> for linear or grid replication. Real-time warnings highlight thin walls and punctures.
4. **Boolean Export:** Perform boolean subtraction directly in browser memory and download clean STL or 3MF solids. Record any indicated pause heights for hidden cavities.

## About Configuration Options

### Hole type

- **Type** (Default: Magnet): Magnet holes support open press fits and enclosed cavities. Heat-set insert holes match standard metric threads with melt relief wells.
  - `magnet` — Magnet (Recommended)
  - `insert` — Heat-set insert
  - `screw` — Screw hole
- **Place holes**: Click the model surface to place a normal-aligned hole. Drag along the surface to adjust position; press Delete to remove selected.

### Magnet

- **Magnet diameter** (Default: 6mm; Range: 1mm – 40mm · step 0.5mm): Outer diameter of the cylindrical magnet.
- **Magnet thickness** (Default: 2mm; Range: 0.5mm – 20mm · step 0.5mm): Physical thickness of the magnet.
- **Diameter clearance** (Default: 0.2mm; Range: 0mm – 1mm · step 0.05mm): Radial hole clearance. Offsets FDM hole shrinkage; 0.2 mm yields a snug press fit.
- **Depth clearance** (Default: 0.4mm; Range: 0mm – 2mm · step 0.1mm): Extra depth allowance. 0.2-0.4 mm ensures the magnet sits flush or recessed.
- **Placement** (Default: Open): Open holes allow post-print press fitting; enclosed cavities are sealed during print.
  - `open` — Open (Recommended): Surface-accessible bore for post-print insertion.
  - `hidden` — Hidden: Enclosed internal cavity paused mid-print to encapsulate magnets.
- **Layer height** (Default: 0.2mm; Range: 0.05mm – 0.4mm · step 0.01mm): Slicer layer height setting, used to compute roof thickness and precise pause height.
- **Roof layers** (Default: 2; Range: 1 – 8): Number of solid top layers sealing an enclosed cavity.

### Heat-set insert

- **Shape** (Default: Hex nut pocket): Hex cuts a hex pocket for a standard nut; round matches brass heat-set inserts.
  - `hex` — Hex nut pocket (Recommended)
  - `round` — Round insert hole
- **Thread size** (Default: M3): Standard metric thread. Automatically sets recommended pilot bore, wall thickness, and length.
  - `M2` — M2
  - `M2.5` — M2.5
  - `M3` — M3 (Recommended)
  - `M4` — M4
  - `M5` — M5
- **Insert length** (Default: 5.7mm; Range: 1mm – 20mm · step 0.1mm): Total length of the brass insert. Total bore depth equals this plus extra depth.
- **Hole size adjustment** (Default: 0.2mm; Range: -0.3mm – 0.6mm · step 0.05mm): Bore diameter offset. Reduce if fit is loose; increase if insertion causes outer wall bulging.
- **Extra depth** (Default: 1mm; Range: 0mm – 5mm · step 0.5mm): Bottom cavity reservoir to accept molten plastic displaced during thermal insertion.

### Screw hole

- **Screw size** (Default: M3): Metric screw size; the hole is cut through the model as a clearance bore.
  - `M2` — M2
  - `M2.5` — M2.5
  - `M3` — M3 (Recommended)
  - `M4` — M4
  - `M5` — M5
- **Hole clearance** (Default: 0.4mm; Range: 0mm – 2mm · step 0.1mm): Added to the screw diameter. 0.4 mm is a normal clearance fit.

### Hole pattern

- **Pattern** (Default: Row): Replicates the selected hole along the surface into a linear row or rectangular grid.
  - `linear` — Row (Recommended)
  - `grid` — Grid
- **Count** (Default: 3; Range: 2 – 20): Total hole count in linear mode, or per grid side, including the reference hole.
- **Spacing** (Default: 15mm; Range: 1mm – 2000mm · step 0.5mm): Center-to-center distance between adjacent holes (mm).
- **Direction** (Default: 0°; Range: 0° – 180° · step 15°): Tangential orientation angle on the surface. 0° is horizontal on vertical faces and aligns with Y on horizontal faces.

### Preview

- **Show** (Default: Markers): Markers shows placement cylinders and normals. Cut result renders real-time boolean mesh subtraction.
  - `markers` — Markers (Recommended)
  - `result` — Cut result
- **Snap to model points** (Default: on): Snaps hole placement to nearby vertices, edge midpoints, and face centers during drag.
- **Alignment guides** (Default: on): Displays dynamic alignment guides linking nearby holes and model geometry centers.

### Export

- **Format** (Default: Original format): The default is the uploaded file's format. STL downloads a ZIP with one file per part. 3MF keeps every part in one file.
  - `original` — Original format (Recommended)
  - `stl` — STL
  - `3mf` — 3MF
- **Add a fit test** (Default: off): Exports an additional calibration piece to test tolerance fit before full printing. For connectors, includes a sample interlocking block; for holes, provides three stepped tolerance bores (-0.1 mm, nominal, +0.1 mm) with reference dots.

## FAQ

### What hole diameter and depth should I use for a 6×2 mm magnet?

FDM 3D prints experience slight radial hole shrinkage. For a 6×2 mm magnet, use Ø 6.2 mm (+0.2 mm diameter clearance) and 2.4 mm depth (+0.4 mm depth clearance) for a secure, flush press fit. The tool estimates the part's weight from its volume and starts from a standard magnet size that holds it; set it to the magnets you have. If fit is too tight or loose, adjust clearance using the included fit test block.

### How are hole dimensions calculated for M3 heat-set inserts?

Standard M3 knurled inserts have a 4.0 mm nominal outer diameter. Adding 0.2 mm thermal clearance yields a 4.2 mm bore. Hole depth equals the insert length (default 5.7 mm) plus a 1.0 mm bottom relief well to capture displaced molten plastic. Keep surrounding wall thickness above 1.6 mm to prevent hoop stress splitting.

### How do I embed hidden magnets inside a 3D print?

Select the Hidden placement mode. The tool builds a solid roof (default 2 layers) above the magnet cavity and calculates the exact slicer pause height in millimeters. In your slicer (e.g. Bambu Studio, OrcaSlicer, PrusaSlicer), insert a Pause print command at that layer, drop in the magnet, and resume printing.

### Why is a placed hole highlighted in red?

A red highlight indicates an assembly violation: surrounding wall thickness is below structural minimums, the hole punctures through the opposite surface, or an enclosed cavity is positioned on a vertical face where roof bridging would fail. Move the hole, reduce tolerances, or select shorter hardware.
