Magnetic Nametag / Acronym plate generator (openscad + bash script)

Openscad and bash script that allows to quickly generate a set of STLs with magnetic nametags.
0
5
0
22
updated November 16, 2024

Description

PDF

Bash Script and OpenSCAD model to generate a bunch of STLs with “nametags” and holes for magnets, based on a list of strings in the bash script. 

We use this at work with a magnetic whiteboard for our Darts ranking list with people's acronyms on the tags :) 

Requires:

  • Filament
  • 2x Magnets: 10x2mm (generated holes are adjustable in the scad model; mine were press-fit but I secured them with some super glue too; adjust measurements in the .scad file as needed!)

To use:

  1. Install OpenSCAD
  2. Download (and unpack) all files of this “model”
  3. Rename “generate_nametags.txt” to “generate_nametags.sh”
  4. (Maybe needed on Linux, wasn't needed on Windows:) Make this file executable via “chmod +x generate_nametags.sh” 
  5. Adjust the OPENSCAD variable to your OpenSCAD installation & the “NAMES” array in this file to include the strings you want on the tags; note the comment!
  6. Adjust the “nametag.scad” file with the sizes to your needs.
  7. Execute the shell script via “sh generate_nametags.sh” (under Windows, use WSL, Mingw's MSYS, Git Bash or similar - not the regular terminal/cmd) 
  8. Enjoy your STLs, named by the strings you've defined in the “NAMES” array" and print them !

 

Print settings (with default .scad model):

  • Material: any?
  • Enabled “Set auto color changes” (that's what it's called in Prusa Slicer at least)
  • Resolution: 0.20 mm
  • Infill: any

Tags



Model origin

The author remixed this model.

Differences of the remix compared to the original

Added bash script and adjusted the OpenSCAD model slightly

License