solidworks-automation

Generate Python COM automation for SolidWorks part modeling from natural language.

21|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/djlex83/solidworks-automation-skill --skill solidworks-automation-djlex83
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidworks-automation
Source: https://github.com/djlex83/solidworks-automation-skill/tree/main
Command: npx skills add https://github.com/djlex83/solidworks-automation-skill --skill solidworks-automation-djlex83

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pywin32, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the manual effort of creating SolidWorks sketches and features by letting users describe CAD parts in natural language and generating the automation code to build them.

Core Features & Use Cases

  • 2D Sketch Automation: Create lines, circles, rectangles, ellipses, arcs, splines, polygons, and slots for part profiles.
  • 3D Feature Creation: Generate extrusions, cuts, revolves, chamfers, fillets, patterns, mirror operations, and reference planes.
  • Bilingual CAD Commands: Understands German and English requests for common modeling tasks such as boxes, cylinders, pipes, flanges, cones, shafts, and hole patterns.
  • Use Case: A designer can ask for a flange with bolt holes, and the Skill can produce the sketch-and-feature workflow needed to model it in SolidWorks.

Quick Start

Ask the Skill to create a 100x50x30 mm box in SolidWorks and generate the Python automation steps to sketch, extrude, and save the part.

Frequently Asked Questions about solidworks-automation

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

FAQPage Schema
How do I automate SolidWorks part modeling from natural language?

Automate SolidWorks part modeling by generating Python COM automation for sketches and features. The Skill converts natural language descriptions into API calls for 2D sketch creation, 3D extrusions, revolves, and document control operations.

Can I generate Python scripts for SolidWorks sketches and extrusions?

Yes, you can generate Python scripts for SolidWorks sketches and extrusions. The Skill creates COM automation code to draw lines, circles, and polygons, then applies 3D feature operations like cuts, chamfers, fillets, and patterns.

Does SolidWorks automation with Python require pywin32 on Windows?

Yes, SolidWorks automation with Python requires pywin32 on Windows. You need SolidWorks 2015 or newer installed, a live part document open, and the pywin32 library to connect Python to the SolidWorks COM API.

What is the best way to create CAD parts using German or English commands?

The best way to create CAD parts using German or English commands is through bilingual natural language processing. The Skill understands both languages to generate sketch-and-feature workflows for common modeling tasks like boxes, cylinders, flanges, and shafts.

What are the limitations of using Python COM for CAD automation in SolidWorks?

Limitations of using Python COM for CAD automation include requiring a live part document connection and a Windows environment. The Skill operates within the SolidWorks API constraints, converting millimeter inputs into structural modeling operations.

How do I automate a flange with bolt holes in SolidWorks?

To automate a flange with bolt holes in SolidWorks, describe the geometry in natural language. The Skill generates the Python COM automation sequence, creating the necessary sketches, extrusions, and hole patterns to model the part.