solidworks-automation

Automate SolidWorks CAD modeling, assembly, drawing generation, and file export through Python COM and MCP interfaces.

2.5k|223|Updated Mar 17, 2026
Ready to run
npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-automation-wzyn20051216
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: solidworks-automation
Source: https://github.com/wzyn20051216/solidworks-automation-skill
Command: npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-automation-wzyn20051216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pywin32, comtypes, cadquery-ocp, pydantic, PyMuPDF, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Manual CAD work is repetitive, error-prone, and blocks design iteration. This Skill eliminates tedious model creation, documentation, and export tasks by enabling natural-language-driven automation of SolidWorks operations. ## Core Features & Use Cases - Parametric Modeling: Create parts with sketches, extrusions, fillets, and threading through structured APIs. - Assembly Automation: Build assemblies with mates, detect interference, and validate motion constraints. - Engineering Drawings: Generate GB/T-compliant drawings with automatic dimension insertion, BOM generation, and PDF export. - Multi-Format Export: Output STEP, STL, IGES, DXF, and PDF with verification evidence. - Use Case: Design a mounting bracket: define hole positions and material → Skill generates SLDPRT with tolerances, produces assembly-ready STEP file, and exports dimensioned technical drawing for manufacturing. ## Quick Start Tell the Skill to create a 50mm diameter cylindrical boss on a 100x100mm base plate with four M6 corner mounting holes and export it as a STEP file for CNC verification.

Frequently Asked Questions about solidworks-automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create threaded holes in SolidWorks using Python automation?▼

Use the solidworks-threaded-holes subskill with scripts like `create_threaded_hole_template.py`, which applies ISO metric tap thread geometry to specified hole positions. After creation, the skill validates thread depth and exports STEP files with accurate B-Rep geometry.

What file formats can this Skill export from SolidWorks models?▼

Exports native SLDPRT/SLDASM/SLDDRW as well as open formats: STEP, IGES, BREP, STL, OBJ, GLB, DXF, SVG, PDF, and PNG. Open format export requires OCP/OCCT and operates without SolidWorks installation.

Does this Skill support Motion Study simulation and motor configuration?▼

Yes. The Skill creates Motion Study instances, adds rotary motors to assemblies, calculates kinematics, and validates result state. Motion results require manual engineering review and are marked as pilot-level capability.

Can I use this Skill to generate engineering drawings with GD&T and dimension chains?▼

The solidworks-engineering-drawing subskill generates drawings with model dimensions, basic dimensions, datum frames, GD&T symbols, and BOMs. SW2026 supports native GD&T annotation with structure-based symbol insertion. All results require visual review before manufacturing handoff.

What happens when SolidWorks is not installed on the system?▼

Native SLDPRT/SLDASM/SLDDRW operations are blocked. The Skill falls back to headless open-format writing for STEP, IGES, STL, DXF, and other formats via OCCT/OCP backends, enabling geometry creation and export without SolidWorks licensing.

How does this Skill verify that CAD execution actually succeeded?▼

The Skill compares tool call success against result verification: it checks feature rebuilds, file saves, geometry measurements, and re-opens documents to confirm persistence. False-completion detection catches cases where API calls succeeded but geometry was not created.