Skip to main content
F3D
Thẻ đánh dấu cáp USB tiếng Ả Rập 1

3 images

Máy In 3D

Thẻ đánh dấu cáp USB tiếng Ả Rập

By AbdullahIbrah_291902

Views
52

Files 4 32 KB

  • USB_Tag_-_Bottom_1773464573.stlSTL · 19.2 KB
  • name_1773464573.scadSCAD · 1.2 KB
  • bottom_1773464574.scadSCAD · 1.2 KB
  • USB_Tag_-_Top_1773464575.stlSTL · 10.4 KB

Make a variant with AI

Build another version of this model.

Open Studio

Description

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.

Read more Show less

Print spec

Formats
scadstl
Model files
4
Total size
32 KB
Largest file
19.2 KB

0 comments

See all