Skip to content

Bottle name tag

?
Creation's quality: 5.0/5 (1 vote)
Evaluation of members on the printability, utility, level of detail, etc.
  • 534 views
  • 3 likes
  • 31 downloads

3D model description

A name tag hanging bottle.

You can customize the text of name by yourself. Even multibyte-characters or Emoji can be used if TTF fonts are prepared !

How You Customize This

Prepare FreeCAD
If you don't have FreeCAD, download and install it.
https://wiki.freecadweb.org/Download

Prepare fonts
You can find TTF files in your system. You can also download from web sites. Attached ttf fonts were obtained from the following sites.
* Free Times font
* IPA Japanese font
* Google Noto Emoji font

Modify python macro
- First, you have to input directory path where ttf file.
- Second, modify tag text
- Run macro to generate 3D model !!

Extract .py.zip file and open the python macro on FreeCAD. Then you find a small macro in our editor. You might think it's not small, but an important part to generate the models is only from line 93 to line 121.

Find the following code, and replace the parameter "fontDir" to a full path of your directory where ttf files are in it. The example starting with "/Users/(username)/" is typical MacOS file path. Windows' path should start with "C:".

#######################################
# Dir path for TTF font
#######################################
fontDir = "/Users/SOMEONE/SOMEWHERE/Fonts/"

After your replaceing the directory path, the macro should generate the demo name tags. Try clicking Run button of macro to generate 3D mdoels. If you cannot find Run macro button, select menu of View>Tool bar>Macro. Report view and Python console panel (View>Panel>Report view, Python console) will help you understand what is going on.

Now if you can see 3D models, let's modify text on the tag. Find "addText" command at line 108 in the following code. Change the text "Name" to what you want to add on the name tag, then run the macro. You should see that text on the 3D model.

  • Method "addText" will add 3D text string on the name tag.
  • Method "cutText" will cut or make hole shaping a text string.
  • size: font size
  • left: distance from left edge
  • bottom: distance from bottom edge
  • font: font file path defined above.

Enjoy !!

########################################
# Text tags
########################################

# "Name" tag 30mm in width, Times font
nameTag = NameTag(tag_width=30)
shape = nameTag.addText("Name",size=6,left=2,bottom=3,font=fontEn)
Part.show(shape,"Text_Your")

# "Name(JP)" tag 30mm in width, Gothic font
nameTag2 = NameTag(tag_width=30)
shape2 = nameTag2.addText("名前",size=6.5,left=4,bottom=3,font=fontJP)
shape2.Placement.move(Vec(40,0,0)) # move to right
Part.show(shape2,"Text_Name")

# Rabbit tag 20mm in width, Emoji font
nameTag3 = NameTag(tag_width=20)
shape3 = nameTag3.addText(str(chr(0x1F430)),size=10,left=3,font=fontEmoji)
shape3.Placement.move(Vec(80,0,0)) # move to right
Part.show(shape3,"Emoji_01F430")

3D printing settings

Printer brand:
FlashForge

Printer:
Adventurer 3

Rafts:
Yes

Supports:
No

Resolution:
Higher is better, depends on text size

Infill:
No

Filament_brand:
FlashForge

Filament_material:
ABS(preferred), PLA

Notes:
Since a tag and connectors between the tag and a ring is thin, raft might be necessary. PLA tends to make small strings between characters, ABS would make better quality.

  • 3D file format: STL and ZIP
  • Publication date: 2020/05/06 at 04:58

Tags

Creator

License

CC BY SA


Best sellers of the category Home


Add a comment


Would you like to support Cults?

You like Cults and you want to help us continue the adventure independently? Please note that we are a small team of 3 people, therefore it is very simple to support us to maintain the activity and create future developments. Here are 4 solutions accessible to all:

  • ADVERTISING: Disable your AdBlock banner blocker and click on our banner ads.

  • AFFILIATION: Make your purchases online by clicking on our affiliate links here Amazon, Gearbest or Aliexpress.

  • DONATE: If you want, you can make a donation via PayPal here.

  • WORD OF MOUTH: Invite your friends to come, discover the platform and the magnificent 3D files shared by the community!