Solidworks Automation logo

Solidworks Automation

Community
djlex83
solidworks-automation

Automatisiert SolidWorks CAD-Software über Python und COM-Schnittstelle. Verwende diesen Skill wenn der Nutzer: - 2D Skizzen erstellen möchte (Linien, Kreise, Rechtecke, Ellipsen, Bögen, Splines) - 3D Features erstellen möchte (Extrusionen, Schnitte, Bohrungen, Fasen, Verrundungen) - Drehkörper erstellen möchte (Revolve - Zylinder, Kegel, Kugeln, Torus) - Muster erstellen möchte (Linear Pattern, Circular Pattern, Mirror) - Referenzgeometrie erstellen möchte (Ebenen, Achsen) - SolidWorks-Modelle automatisieren möchte - CAD-Operationen in natürlicher Sprache beschreibt (Deutsch oder Englisch) Trigger-Phrasen: "zeichne", "erstelle", "extrudiere", "bohre", "drehe", "rotiere", "spiegele", "draw", "create", "extrude", "hole", "revolve", "mirror", "SolidWorks", "CAD", "Skizze", "sketch", "Welle", "Zylinder", "Kegel" Voraussetzungen: Windows, SolidWorks 2015+, Python mit pywin32

Overview

Publisherdjlex83
Repositorysolidworks-automation-skill
Skill namesolidworks-automation
Stars
27
Forks
0
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by djlex83 on GitHub. Read the source before you install it.

Installation

Install the Solidworks Automation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/djlex83/solidworks-automation-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/djlex83/solidworks-automation-skill.git \
  .claude/skills/solidworks-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Solidworks Automation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Solidworks Automation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Solidworks Automation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SolidWorks Automation Skill

Dieser Skill ermöglicht die Automatisierung von SolidWorks über natürliche Sprache.

Voraussetzungen

  • Windows-Betriebssystem
  • SolidWorks 2015 oder neuer (muss laufen)
  • Python 3.x mit pywin32: pip install pywin32
  • Ein geöffnetes Part-Dokument in SolidWorks

Workflow

  1. Nutzer beschreibt was erstellt werden soll (z.B. "Zeichne ein Rechteck 100x50mm und extrudiere es 20mm")
  2. Claude generiert Python-Code basierend auf diesem Skill
  3. Code wird ausgeführt in SolidWorks
  4. Ergebnis erscheint im SolidWorks-Modell

Wichtige API-Hinweise

Einheiten

  • SolidWorks API verwendet Meter, nicht Millimeter
  • Immer mm / 1000 rechnen vor API-Aufruf
  • Beispiel: 100mm = 0.1 Meter

Sketch-Operationen

  • Sketch muss aktiv sein vor Zeichenoperationen
  • InsertSketch() startet neuen Sketch auf ausgewählter Ebene
  • InsertSketch() beendet auch aktiven Sketch

Feature-Operationen

  • Features brauchen geschlossene Skizzen
  • Nach Sketch: InsertSketch() zum Beenden
  • Dann Feature-Methode aufrufen

Verfügbare Operationen

2D Skizzen (SketchManager)

OperationMethodeBeispiel
Liniesw.sketch.line(x1, y1, x2, y2)Gerade zwischen zwei Punkten
Kreissw.sketch.circle(diameter=100)Kreis mit Durchmesser
Rechtecksw.sketch.rectangle_centered(width, height)Zentriertes Rechteck
Ellipsesw.sketch.ellipse(major_radius, minor_radius)Ellipse
Bogensw.sketch.arc(cx, cy, radius, start, end)Kreisbogen
3-Punkt-Bogensw.sketch.three_point_arc(x1,y1,x2,y2,x3,y3)Bogen durch 3 Punkte
Splinesw.sketch.spline(points, closed)Freiformkurve
Polygonsw.sketch.polygon(cx, cy, radius, sides)Regelmäßiges Vieleck
Langlochsw.sketch.slot(x1, y1, x2, y2, width)Slot/Langloch
Beziehungsw.sketch.add_relation("horizontal")Sketch-Constraints

3D Features (FeatureManager)

OperationMethodeBeschreibung
Extrusionsw.feature.extrude(depth)Profil in Tiefe ziehen
Schnittsw.feature.cut(depth)Material entfernen
Drehkörpersw.feature.revolve(angle)Rotation um Achse
Dreh-Schnittsw.feature.revolve_cut(angle)Rotationsschnitt
Fasesw.feature.chamfer(distance)Kante abschrägen
Verrundungsw.feature.fillet(radius)Kante abrunden
Linear Patternsw.feature.linear_pattern(dir, count, spacing)Lineares Muster
Bohrungsmustersw.feature.circular_hole_pattern(...)Kreisförmiges Lochmuster
Spiegelnsw.feature.mirror(plane)Feature spiegeln
Referenzebenesw.feature.reference_plane(offset)Neue Ebene erstellen

Quick-Funktionen

FunktionBeschreibung
quick_box(w, h, d)Schnell einen Quader erstellen
quick_cylinder(d, h)Schnell einen Zylinder erstellen
quick_pipe(outer, inner, length)Rohr/Hohlzylinder
quick_revolve(points, axis, angle)Drehkörper aus Profil
quick_plate_with_holes(...)Platte mit Bohrungen

Code-Generierung

Wenn du Code generierst, verwende immer das Script aus scripts/sw_automation.py.

Standard-Template

python
from sw_automation import SolidWorksAutomation

# Verbindung herstellen
sw = SolidWorksAutomation()

# Operationen ausführen
# ... (spezifische Operationen hier)

# Speichern
sw.save()

Beispiel: Rechteck extrudieren

python
from sw_automation import SolidWorksAutomation

sw = SolidWorksAutomation()

# Rechteck zeichnen (100x50mm, zentriert)
sw.sketch.rectangle_centered(width=100, height=50)

# Extrudieren (20mm tief)
sw.feature.extrude(depth=20)

sw.save()

Beispiel: Kreis mit Bohrungen

python
from sw_automation import SolidWorksAutomation

sw = SolidWorksAutomation()

# Kreis zeichnen (Durchmesser 200mm)
sw.new_sketch("Front")
sw.sketch.circle(diameter=200)
sw.end_sketch()

# Extrudieren
sw.feature.extrude(depth=10)

# 8 Bohrungen auf Lochkreis
sw.feature.circular_hole_pattern(
    num_holes=8,
    hole_diameter=10,
    pitch_circle_diameter=150,
    hole_depth=10
)

sw.save()

Beispiel: Drehkörper (Kegel)

python
from sw_automation import SolidWorksAutomation

sw = SolidWorksAutomation()
sw.new_sketch("Front")

# Dreieckiges Profil für Kegel
sw.sketch.line(0, 0, 30, 0)   # Basis
sw.sketch.line(30, 0, 0, 60)  # Schräge
sw.sketch.line(0, 60, 0, 0)   # Schließen

# Mittellinie für Rotation
sw.sketch.line(0, -10, 0, 70)

sw.end_sketch()
sw.feature.revolve(angle=360)
sw.save()

Beispiel: Quick-Funktionen

python
from sw_automation import quick_box, quick_cylinder, quick_pipe

# Quader 100x50x30mm
quick_box(100, 50, 30)

# Zylinder Ø80mm, Höhe 50mm
quick_cylinder(80, 50)

# Rohr Außen Ø50, Innen Ø40, Länge 100mm
quick_pipe(50, 40, 100)

Referenzen

Für detaillierte API-Dokumentation siehe:

  • references/sketch-operations.md - Alle Skizzen-Methoden
  • references/feature-operations.md - Alle Feature-Methoden
  • references/examples.md - Weitere Beispiele

Sprachunterstützung

Der Skill versteht Deutsch und Englisch:

Deutsch:

  • "Zeichne ein Rechteck 100x50mm"
  • "Erstelle eine Extrusion 20mm tief"
  • "Füge 8 Bohrungen M10 auf Lochkreis 200mm hinzu"

English:

  • "Draw a rectangle 100x50mm"
  • "Create an extrusion 20mm deep"
  • "Add 8 M10 holes on pitch circle 200mm"

Fehlerbehandlung

Häufige Fehler und Lösungen:

FehlerUrsacheLösung
"Failed to connect"SolidWorks nicht gestartetSolidWorks starten
"No active document"Kein Part geöffnetPart-Dokument öffnen
"Sketch not active"Sketch nicht gestartetInsertSketch() aufrufen
"Feature creation failed"Sketch nicht geschlossenSketch beenden vor Feature

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Solidworks Automation AI skill do?

Automatisiert SolidWorks CAD-Software über Python und COM-Schnittstelle. Verwende diesen Skill wenn der Nutzer: - 2D Skizzen erstellen möchte (Linien, Kreise, Rechtecke, Ellipsen, Bögen, Splines) - 3D Features erstellen möchte (Extrusionen, Schnitte, Bohrungen, Fasen, Verrundungen) - Drehkörper erstellen möchte (Revolve - Zylinder, Kegel, Kugeln, Torus) - Muster erstellen möchte (Linear Pattern, Circular Pattern, Mirror) - Referenzgeometrie erstellen möchte (Ebenen, Achsen) - SolidWorks-Modelle automatisieren möchte - CAD-Operationen in natürlicher Sprache beschreibt (Deutsch oder Englisch)...

Why use Solidworks Automation on TypingMind?

Because you install it once and use it with any model. Solidworks Automation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Solidworks Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/djlex83/solidworks-automation-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Solidworks Automation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Solidworks Automation?

As many as you like. As long as a model supports skills, you can use Solidworks Automation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Solidworks Automation AI skill free?

Yes. It is published on GitHub by djlex83 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇