solidworks-automation-skill
View on GitHubPython automation toolkit for SolidWorks API
A dual-entry Skill package and local MCP server that lets AI agents (Claude Code, Codex, Cursor, OpenClaw) drive SolidWorks/AutoCAD via Python COM automation: modeling, assemblies, drawings, exports, DFM, FEA and motion studies, with a capabilities.yaml gate marking verified vs pilot features.
Use Cases
Drive SolidWorks part/assembly modeling from natural language via Claude Code, Codex, or MCP clientsGenerate GB/T engineering drawings with dimensions, sections, and BOM from CAD modelsBatch export parts to STEP/IGES/BREP/STL/OBJ/GLB and 2D output to DXF/SVG/PDF/PNGRun headless DFM risk checks for machining, sheet metal, laser cutting, and 3D printingPrepare and run CalculiX linear/nonlinear FEA with convergence studiesCreate assemblies with mates and interference checks, plus motion study rotary motorsModel threaded holes, gears, fillets/chamfers, sheet metal and weldment framesAutomate AutoCAD/DWG-DXF drawing previews and structural reviewExpose SolidWorks COM automation as local MCP tools for Cursor/Windsurf/Codex clientsImport and rescale GLB/OBJ/STL mesh references as SolidWorks reference parts
Built With
- Language
- Python
- Frameworks
- MCP Python SDK · pywin32 · comtypes · OpenCASCADE (OCCT/OCP) · ezdxf · CalculiX · Pydantic · PyMuPDF · matplotlib · trimesh · Node.js installer
Tags
solidworks · cad · automation · mcp-server · skill-pack · python · claude-code · codex · autocad · dxf · engineering-drawing · fea · sheet-metal · weldments · motion-study · windows-com-automation