मुख्य सामग्री पर जाएँ
Skillpedia
विविध25k · #10072

gcode

यह क्या करती है

यह स्किल OrcaSlicer से 3D मॉडल फ़ाइलों को प्रिंट निर्देशों में slice करती है। यह उन लोगों के लिए है जो अपने 3D प्रिंटर के लिए मॉडल तैयार करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप अपने 3D प्रिंटर के लिए STL या 3MF मॉडल slice करवाना चाहते हैं।
  • ✓जब आपको प्रिंट के लिए slice की हुई .gcode.3mf या सादी .gcode फ़ाइल चाहिए।
  • ✓जब आप चाहते हैं कि OrcaSlicer में मॉडल खुले ताकि आप उसे खुद slice कर सकें।

Skill का लिंक

https://github.com/earthtojake/text-to-cad/blob/main/skills/gcode/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/earthtojake/text-to-cad/blob/main/skills/gcode/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप इस STL को OrcaSlicer से मेरे Prusa MK4 के लिए slice करके G-code फ़ाइल दे सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI OrcaSlicer के presets इस्तेमाल करता है, और जिन presets से आप पहले से प्रिंट करते हैं उन्हें प्राथमिकता देता है, फिर slicer चलाता है। वह फ़ाइल कभी प्रिंटर को नहीं भेजता। Bambu Lab प्रिंटरों के लिए परिणाम Bambu Connect से जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

G-code

Slice with OrcaSlicer, headless (below) or by opening the model in the OrcaSlicer app for the user. The agent never contacts a printer: for a Bambu Lab printer, the result is sent through Bambu Connect; for any other printer, give the user the .gcode.

Install OrcaSlicer

  • macOS: brew install --cask orcaslicer. The command line is /Applications/OrcaSlicer.app/Contents/MacOS/OrcaSlicer.
  • Windows and Linux: install a release from https://github.com/OrcaSlicer/OrcaSlicer/releases. The command is orca-slicer; on Linux, run it from the AppImage or Flatpak.

Below, <orca> is that command.

Slice headless

OrcaSlicer's command line (https://www.orcaslicer.com/wiki/cli/cli_mode) needs complete presets: it doesn't fill in a preset's parent settings, and it slices only with a process whose compatible printers name the printer. scripts/orca_presets.py (Python 3, no dependencies) writes them from OrcaSlicer's presets, searching the user's own first, then OrcaSlicer's built-in profiles.

  1. Find the user's printer, process and filament presets. Prefer the presets the user prints with; never invent one, since a wrong bed size or temperature can damage the printer.

    python scripts/orca_presets.py --list machine --match "MK4S"
    python scripts/orca_presets.py --list process --match "@MK4S 0.4"
    python scripts/orca_presets.py --list filament --match "PLA @MK4S"
    
  2. Write the complete presets:

    python scripts/orca_presets.py --printer "Prusa MK4S 0.4 nozzle" \
      --process "0.20mm SPEED @MK4S 0.4" --filament "Prusa Generic PLA @MK4S" \
      --out presets
    
  3. Slice. Give --outputdir an absolute path:

    <orca> model.stl \
      --load-settings "presets/process.json;presets/printer.json" \
      --load-filaments presets/filament-1.json \
      --arrange 1 --slice 0 \
      --outputdir /absolute/path/to/out --export-3mf model.gcode.3mf
    

    This writes plate_1.gcode, the plain G-code, and model.gcode.3mf, the sliced 3MF, into that folder. The command line reads .stl, .3mf, .obj and .amf; export STEP to STL or 3MF first (for a text-to-cad model, cad export <id> part.3mf, or cad export part.step part.3mf). Override one setting with --<setting>=<value>, using the setting's key with hyphens for underscores, such as --layer-height=0.16.

Open in OrcaSlicer

When the user would rather pick presets and slice themselves, or no preset can be found, open the model in the app: open -a OrcaSlicer model.stl on macOS, Start-Process model.stl on Windows when OrcaSlicer opens that file type, or orca-slicer model.stl on Linux. The app also reads STEP.

Check before printing

  • <orca> model.stl --info prints the model's size; it has to fit the bed.

  • Check the slice's settings, which OrcaSlicer writes at the end of the G-code:

    grep -E '^; (printer_model|nozzle_diameter|filament_type|nozzle_temperature|hot_plate_temp|bed_temperature) =|printing time' out/plate_1.gcode
    

    Confirm they match the user's printer and material before anyone prints it.

Hand off

  • A Bambu Lab printer: Bambu Connect, with the .gcode.3mf.
  • Any other printer: the user prints the .gcode from their printer's app, its web interface (PrusaLink, OctoPrint, Mainsail, Fluidd) or an SD card.
अक्सर पूछे जाने वाले सवाल

क्या यह मेरे प्रिंटर को प्रिंट भेजती है?

नहीं। Bambu Lab के अलावा प्रिंटरों के लिए आपको G-code फ़ाइल मिलती है, जिसे आप खुद इस्तेमाल करते हैं।

यह कौन से प्रिंटर सपोर्ट करती है?

ज़्यादातर FDM प्रिंटर जिनके लिए OrcaSlicer में बनी profiles मौजूद हैं।

क्या यह प्रिंटर की सेटिंग्स खुद गढ़ती है?

नहीं। स्किल सेटिंग्स का अनुमान लगाने से बचती है, क्योंकि गलत मान प्रिंटर को नुकसान पहुँचा सकता है।

जानकारी

लेखक का मूल विवरण

Slice 3D models into printer-ready G-code with OrcaSlicer, the open-source slicer with built-in profiles for most FDM printers (Prusa, Bambu Lab, Creality, Voron and more). Use when the user wants an `.stl`, `.3mf` or `.obj` model sliced for their printer, as a sliced `.gcode.3mf` or plain `.gcode`, headless with OrcaSlicer's command line or by opening the model in OrcaSlicer. Never contacts a printer.

repo: earthtojake/text-to-cad

लोकप्रियता

GitHub स्टार
25k
रैंकिंग में स्थान
#10072
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

bambu-labs

25k

यह आपके एजेंट को Bambu Connect या Bambu Studio के ज़रिए slice किया या बिना slice का 3D मॉडल Bambu Lab प्रिंटर पर भेजने में मदद करती है।

अन्यविविध

cad

25k

यह आपके एजेंट को 3D पुर्ज़ों और असेंबली को Python build123d स्क्रिप्ट के रूप में डिज़ाइन करने, उन्हें STEP या STL फ़ाइलों में निर्यात करने और उनके माप जाँचने में मदद करती है।

अन्यविविध

dfam-check

25k

यह आपके एजेंट को जाँचने में मदद करती है कि 3D mesh फ़ाइल ठीक से प्रिंट हो सकती है या नहीं, और overhangs, दीवार की मोटाई व सपोर्ट की ज़रूरत बताती है।

अन्यविविध

dfm

25k

यह आपके एजेंट को शीट मेटल, CNC मशीनिंग या इंजेक्शन मोल्डिंग के लिए पुर्ज़े की समीक्षा करने में मदद करती है, यह जाँचने के लिए कि वह बन सकता है या नहीं और क्या बदलना है।

अन्यविविध

मिलती-जुलती skills