April 5, 2025
Description
Just what it says, I tried some other styles of tags, but they weren't as low profile or secure as I'd like. This way the tag can't be rubbed/dragged off the cord, and with both end attached, it will be streamlined, almost snag free.
I did just a handful of tags that I needed, 8mm or 9mm text height, they work well for the average power cords out there.
I will add to it as I need them, or use cases occur to me. Or as I get requests, for those that can't/won't use OpenSCAD.
Please note, the BOSL2 Library IS REQUIRED to run this script!
https://github.com/BelfrySCAD/BOSL2
Parametric for font(Dingbat friendly with adjustments), size, zip tie holes on both ends, etc. Full list of parameters;
//Parameters, and their default settings.
//Text Height in mm.
TextSize=9;
//Text to print. All uppercase is much easier, less adjusting of Padding needed below.
String = "LAPTOP";
//Literal scale of length of characters... 1.0=100% adjsuts length of tag base.
TagLengthScalar=1.0;
// another way to adjust length of base. positive or negative numbers. 1 unit is half TextSize, or roughly half one character long, more or less, except in dingbats.. they are non standard
LengthPadding=0;
//Padding for height of tag, ie, if you use emoji or dingbats that are Not to point or mm specs. Accomodates taller text. This one is 1= 1mm.
WidthPadding=0;
//Width of the rim around the text.
Rim=0.8;
//Thickness of the tag. Text and rim height is half this.
Thickness=1.8;
//Font to use. Dingbats welcome, if you have them!
FONT="Constantia:style=Bold Italic";//["Constantia:style=Bold Italic", "Helvetica"]
//what is the bottom of the text? Base line is as if the text was typed on a line.. ycenter is center of its height. More or less. baseline is default.
TextBase="baseline";//["ycenter","baseline"]
//use this to adjust for more special cases, like dingbats.. Positive or Negative +/- .
TextVerticalOffset=0;
//length of the slots for the ties, in mm.
ZipTieSlotLength=5;
//Width of the slots for the ties, or thickness of your zip tie strap(add a little for clearance!) in mm .
ZipTieSlotWidth=3;
//Thicker area where the tie sits, for reinforcing.
ZipTiePads=true;
//Do you want the tie holes on one end, or both?
TwoTies=false;
License:
Creative Commons — Attribution — Noncommercial — Share Alike