Two colour name tag design file - name is inset one layer so it stays on better
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
FreeCAD design file : 2 parts to be sliced with prusa slicer, combined via included python code into single g-code file
- Ocena
- 0 / 5
- Polubienia
- 1
- Pobrania
- 14
- Wydruki
- 0
- Wyświetlenia
- 69
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- 2D Plates & Logos
- Licencja
- Creative Commons — Attribution — Noncommercial — Share Alike
This FreeCAD file will create a nametag able to be printed in two colours - it has the name part that is in the second colour inset into the main part of the tag, I had a version previously where the name was ‘just on top’ of the tag, but after these were bumped by baggage handling devices etc, some of the letters were sliced off. This design should avoid that, the second colour is embedded in the tag.
There are some additional settings for prusa slicer, and related (very amateur) python code that is used to combine two g-code files into one.
EDIT: Seems (at least to me) that Prusa slicer changed between 2.9.2 and 2.9.3. The Combine.py and the FreeCAD files have been modified to handle that. (there seemed to be two lines to set the height, now there is only one instance of that)
Notes from the FreeCAD file:
Edit the settings in the “Inputs” spreadsheet.
In particular you need to set the name you want. Also has options for the width of the tag, the thickness and the layer height you are going to use to print it with. (etc)
Set the font file for *ALL* the ShapeStrings: ShapeString, SizeTestString, Caps, drop, lower and dropCaps. It has to be the same file for all of them (or at least exactly the same font). (For my linux setup, the font files are in /usr/share/fonts/... This is quite difficult to automate, or to describe in a way that is clear for all operating systems. Note that I think for windows the font files are in c:\windows\fonts by default, this folder might be hidden.)
Once you have set the font for the first shapestring, it is faster to copy the full path and filename then paste for all the others.
Once the design is settled, export the two objects with labels matching the input name in the spreadsheet. Save them in a format that can be used in a slicer. I use amf. If the name you have input is "Robert" then one will be labelled "Robert" (called <<Name>> below) and the other labelled "Tag_Robert" (called <<Tag_Name>> below).
Use the object name as the filename (use the extension as per the output format!).
(<<Tag_Name>> is the main part of the nametag, is printed first in the combined file, then the filament is changed and <<Name>> is the object to be printed in the colour of the name in the second part of the combined file.)
Add both of these to the same Prusa slicer project. The name portion of the two objects should exactly align in x - y, and the ‘name’ part should be one layer indented into the 'Tag' part, which should have a one layer deep cut-out for the name to sit in.
In Prusa slicer, set the last line of the custom G-Code settings for 'Before layer change G-code' to the text below
;layer_num: {layer_num} layer_z: {layer_z}
and set the first line for 'After layer change G-code' to the line below
;AFTER_LAYER_CHANGE layer_num: {layer_num} layer_z: {layer_z}
This adds in the z height etc in a way that is then easier to find and use in the python code.
Set the first lines of the custom ‘End G-code’ to the lines below (note the blank line)
; asdf end layer_num: {layer_num} layer_z: {layer_z}
This makes the text that makes it easier to find the end of the actual print of the first object (the <<Tag Name>>) so the python program can concatenate the second part after the filament change g-code.
Hide each of the objects in turn, slice the project with one object hidden, save the G-Code. Invert the 'hiding' and slice again and save.
The auto filled file names should be something like "Tag Name_36m_0.20mm_205C.gcode" and "Name_9m_0.20mm_205C.gcode"
Have the python program and these two gcode files in the same folder, open a terminal (or cmd.exe) window in that folder and run the python program with a single parameter : the <<Name>>
For example:
../Combine.py Name
or to use the example name above
../Combine.py Robert
This should make a file called "FullTag_Name_36m_0.20mm_205C.gcode" and suggest that you edit the file name to show the total time, in this case I'd use
"FullTag_Name_45m_0.20mm_205C.gcode"
( 45minutes being 36 + 9 )
Print this file. Be ready to change the filament (if you don't have the fancy “AMS” things)
Assumption : the colour / filament change g-code command for your printer is M600.
(a potential to do I noticed as I added this - I might add this as an optional parameter in the python code but please don't hold your breath, you will be better off editing the code to put whatever text you need in there, replacing the M600 that it has now.)
referring to : https://www.printables.com/model/522908-barbie-edition-custom-name-tagkeychain
find the 3 files with a ‘riff’ on that….