1 / 3
Arabic USB Cable Tag — zdjęcie 1
1 / 3

Arabic USB Cable Tag

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Avoid getting your USB cable stolen by your siblings. Add your name on you tags. Also you can gift it to your loved ones

Ocena
0 / 5
Polubienia
1
Pobrania
10
Wydruki
0
Wyświetlenia
58
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Accessories
Licencja
GNU General Public License v3.0

I order to generate tags for a name or names you need to install OpenScad.

The used font is Almarai.

then you can run this script in the same folder:

#!/bin/bash
# Configuration
INPUT_NAME_FILE="name.scad"
INPUT_BOTTOM_FILE="bottom.scad"
OPENSCAD_PATH="openscad" # Adjust if not in your PATH (e.g., /usr/bin/openscad)

Define your Arabic labels as an array

declare -a TAGS=("فاطمة" "منيرة" "مدى" "امال")

Loop through and generate STLs

for TEXT in "${TAGS[@]}"; do # Generate a unique filename (e.g., tag_امال.stl) OUTPUT_FILE="tag_${TEXT}.stl" OUTPUT_BOTTOM_FILE="tag_${TEXT}_bottom.stl"

echo "Processing: $TEXT -> $OUTPUT_FILE + $OUTPUT_BOTTOM_FILE"

# Run OpenSCAD in headless mode
# The double-quotes are escaped so OpenSCAD sees: text_to_show="text"
# To change font pass -D "font_name=FONT:style=STYLE"
# Font style can be Bold or what ever style that this font support
$OPENSCAD_PATH -o "$OUTPUT_FILE" -D "text_to_show=\"$TEXT\"" "$INPUT_NAME_FILE"
$OPENSCAD_PATH -o "$OUTPUT_BOTTOM_FILE" -D "text_to_show=\"$TEXT\"" "$INPUT_BOTTOM_FILE"

done

echo "Batch processing complete."

After printing glue "tag_NAME.stl" on "USB Tag - Top.stl"

If you want to use other font you can update both .scad file font_name variable or pass it in the script above.

Tagi