Customizable Magnet-Tag Generator
Print Profile(1)

Description
Boost Me (for free)
If you like the Customizer, I would really appreciate a boost :)
Magnet-Tag Generator
A customizable OpenSCAD generator for magnetic nametags.
Text, font, size, margins, rounded corners, magnet placement, and text style are fully parametric.
Features
- Configurable tag size derived automatically from text and margins
- Bold toggle for the text
- Text can be extruded outward or inverted (cut into the tag) with adjustable depth
- Smooth rounded corners with a single radius parameter
- Automatic magnet hole placement with configurable max spacing — adapts to tag width
- Adjustable magnet tolerance for dialing in the perfect fit on your printer
- Visual indicators for the thin floor under magnets in preview mode
- Uses Liberation Mono for consistent cross-platform rendering
Usage
Online
- Click on "Customize"
Local
- Download and open the .scad file in OpenSCAD.
- Tweak the parameters in the Tag and Advanced sections at the top.
- Press F5 to preview, then F6 to render.
- Export to STL for printing.
Print Tip
Add a pause to your print at the layer just above the magnet cavity (magnet_under + magnet_height + magnet_tolerance). This lets you drop the magnets into the holes before the printer seals them in. In most slicers you can add a pause via a height-based color change or custom G-code (M0 or M601). With the default settings this is at 2.6 mm (0.4 mm floor + 2 mm magnet + 0.2 mm tolerance).
Parameters
Tag
| Name | Type | Default | What it does |
|---|---|---|---|
| input | string | "Custom Text" | The main text displayed on the tag. |
| bold | bool | true | Toggle bold text. |
| text_size | mm | 10 | Height of the text. |
| text_invert | bool | false | Cut text into the tag instead of extruding outward. |
| text_depth | mm | 0.4 | Depth of the text extrusion or cut. |
| margin | mm | 3 | Margin around the text on all sides. |
| tag_radius | mm | 3 | Radius for all four rounded corners. |
| magnet_diameter | mm | 6 | Diameter of the magnet holes. |
| magnet_height | mm | 2 | Height of the magnet holes. |
| magnet_tolerance | mm | 0.2 | Extra clearance added to the magnet cavity diameter. Increase if magnets don't fit, decrease for a tighter hold. |
Advanced
| Name | Type | Default | What it does |
|---|---|---|---|
| magnet_under | mm | 0.4 | Thickness of the floor under the magnets. |
| magnet_above | mm | 0.6 | Thickness of the ceiling above the magnets. |
| font_factor | float | 0.8 | Width factor for text width calculation. Calibrate to your font. |
| magnet_max_spacing | mm | 30 | Maximum distance between magnet holes before an additional hole is added. |
| name_line_spacing | float | 1.5 | Line spacing multiplier for multi-line names. |
| tag_color | color | "white" | Color of the tag body. |
| text_color | color | "black" | Color of the text. |
Pastebin
You can view or edit the code directly at the following links:
- Pastebin: https://pb.73.nu/magnet-tag
- Fork: https://pb.73.nu/magnet-tag/fork
- Preview (using https://ochafik.com): https://pb.73.nu/magnet-tag/view
License
This project is licensed under the
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
You may remix, adapt, and build upon this work non-commercially, as long as you credit the original creator.
More info: https://creativecommons.org/licenses/by-nc/4.0/
Created by Christian Leroch
https://www.Leroch.net






Comment & Rating (0)