Skip to content
Projects

About

SolidWorks AI Agent

AI & Machine Learning

How these counts are measured

What you can do

  • Natural-language modeling - One request becomes an ordered feature tree with a base and subsequent features.
  • Native output - Editable SolidWorks features, not a mesh, a macro, or a generated script.
  • Structured contract - A JSON envelope carrying extrude, cut, revolve, fillet, chamfer, patterns, mirror, shell, draft, sweep, loft, rib, holes, notes, and assembly inserts; millimetres in, metres at the COM boundary.
  • Shape library - Circle, rectangle, polygon, ellipse, and slot profiles.

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Vulcan logo

Vulcan

Natural language in. Parametric SolidWorks geometry out.
An AI add-in that turns a plain engineering request into editable SolidWorks features.

GitHub stars GitHub forks SolidWorks 2025 .NET Framework 4.8 Python 3.10+ Flask 3.1 GPLv3

English · 简体中文 · Français · Docs site

Overview · Why Vulcan · What it does · Capabilities · Feature gallery · Architecture · Quick start · Documentation · Roadmap

Vulcan: natural language in, parametric geometry out

System overview

Vulcan system overview: describe on the client, parameterize on the server, execute deterministically in SolidWorks, with schema validation and human confirmation as the two gates

System overview. The model fills a typed schema; the server and client validate it, the client previews it, and the client executes native features. Two gates keep model output away from the document.

Vulcan is a closed loop with one contract in the middle. A request starts as a sentence in the SolidWorks task pane. The server turns it into a typed feature tree, the add-in shows that tree as editable JSON, and only a confirmed tree reaches the COM modeler. The model never executes code, and the document is never touched without a human confirmation.

Why Vulcan

SolidWorks is precise, powerful, and famously click-heavy. A mounting plate with four holes can take a dozen operations: choose a plane, sketch a rectangle, add dimensions, exit the sketch, extrude, select a face, sketch circles, pattern them, and cut through all.

Vulcan compresses that sequence into one sentence. The name comes from the Roman god of fire and metalworking — the forge where raw material meets deliberate intent. Here the raw material is language, and the intent is a parametric feature tree.

The repository contains two generations of the idea:

  • archive/beta/ — the original proof of concept. The LLM generated Python code and the client executed it with exec().
  • client/ and server/ — the maintained architecture. The LLM returns a typed JSON feature tree and a C# add-in executes it deterministically.

This README focuses on client/ and server/. The beta track is archived under archive/beta/ for reference and design history.

What it does

Three panels: a Chinese prompt in the Vulcan panel, the editable JSON preview, and the resulting native cylinder feature tree

Worked example. A sentence becomes an editable JSON tree, then a native feature. The same contract accepts a base extrude followed by an ordered list of cuts.

Real SolidWorks 2025 output: a 200 x 100 x 20 mm mounting plate with four through holes and filleted edges

Real SolidWorks 2025 output: a 200 × 100 × 20 mm plate with four 10 mm through holes and filleted edges. Captured from the local test harness.

Real Vulcan add-in workflow in SolidWorks 2025: prompt, streaming, preview, native model, result, and status

Real add-in flow captured in SolidWorks 2025: pick a feature example, stream the JSON with a busy state, review the preview, execute native features, inspect the result snapshot, and check server health in the status window.

  1. Describe the part. Write a request in the add-in panel. Multilingual models handle Chinese, English, and French input; the system prompt itself is written in Chinese.
  2. The model fills a schema. The server prepends a versioned SolidWorks domain prompt and calls any OpenAI-compatible endpoint. The model returns JSON, not code.
  3. The add-in builds it. The C# client deserializes the tree, draws sketches, and calls the native SolidWorks feature APIs. The result is a native feature tree you can edit.

Capabilities

Capability What it means
Natural-language modeling One request becomes an ordered feature tree with a base and subsequent features.
Native output Editable SolidWorks features, not a mesh, a macro, or a generated script.
Structured contract A JSON envelope carrying extrude, cut, revolve, fillet, chamfer, patterns, mirror, shell, draft, sweep, loft, rib, holes, notes, and assembly inserts; millimetres in, metres at the COM boundary.
Shape library Circle, rectangle, polygon, ellipse, and slot profiles.
Feature library Extrude, cut, revolve, fillet, chamfer, linear and circular patterns, mirror, shell, draft, sweep, loft, rib, counterbore, countersink, hole arrays, drawing notes, and assembly inserts.
Termination and edge controls Blind, mid-plane, through-all, and through-next termination; two-sided depths; fillets and chamfers can target all edges, one axis, or circular edges.
Existing dimension editing Read driving dimensions from the document context and apply edit_dimension changes without rebuilding the part; rollback restores the previous values.
Reference geometry Offset a datum plane along its normal and sketch on it for bosses and cuts.
Freeform sketches and standard holes Draw line, arc, circle, and polyline profiles and extrude/cut them by seed; ISO 273 clearance holes and metric tap-drill sizes via thread.
Configurations and part families Create dimension-driven SolidWorks configurations from one feature tree; override Feature.parameter values per configuration and roll them back with the run.
Drawing views Insert a standard front/top/right/isometric view of a saved part or assembly on the current drawing sheet.
Sheet metal base flange Create a base flange from a closed profile with a specified thickness and bend radius; SolidWorks generates the sheet-metal and flat-pattern features.
Runtime verification and snapshots After each run, capture body count, bounding box, volume, and a BMP snapshot; warnings flag missing bodies, empty bounds, and volume changes that contradict the feature types.
Hole placement Explicit center_x and center_y, through_all, and a four-corner heuristic that reads the original Chinese, English, or French prompt.
Provider freedom OpenAI, Anthropic, DeepSeek, Qwen, Qiniu Cloud, vLLM, Ollama, or any compatible endpoint.
Portable server Runs locally, in Docker, or behind a tunnel; only the client needs Windows.
Debuggable pipeline No exec() in the release track; each stage is logged and typed.
API-first execution Native feature APIs first. Extrusion and through-cut failures fall back to a keyboard-driven native panel; blind cuts stop instead, so a failed cut cannot silently cut through the part.
Bring your own key Set the provider key, base URL, and model in the add-in settings dialog. The key is DPAPI-encrypted on your machine and sent only to your Vulcan server, for the duration of a request.
Editable preview Every response opens in an editable JSON preview. Nothing reaches SolidWorks until you review and confirm the feature tree.
Iterative revision Continue with a follow-up instruction in the preview window; the server receives the current tree and returns a complete revised tree, never a delta.
Document context Units, bounding box, existing feature names, and the current selection travel with the request so the model can resolve references such as "this part" or "the selected face".
Self-repair A rejected model output is retried once with the validator errors fed back; the response reports how many repairs ran.
Run history and rollback The last 50 runs are stored locally. A past tree can be replayed, and the features created by a run can be removed in one rollback action.
CommandManager tools Eight commands on the Vulcan AI tab and toolbar (pane, both examples, settings, connection test, status, logs, about), task pane quick actions, and a status window with live health and the last run.
Quiet install and uninstall The installer self-elevates, registers the x64 add-in with RegAsm, and uninstalls cleanly without leaving a stale registration behind.

Feature gallery

Every GIF below is assembled from real SolidWorks 2025 captures produced by the SwVerify harness; each frame is a completed model with its native feature tree.

Core modeling: cylinder, plate with four holes, mid-plane and two-sided extrudes, cuts, slot, polygon, revolve, ellipse, sweep, counterbore, countersink, and hole array Editing and rollback: driving dimension edit, hole diameter edit, offset planes, runtime verification, and one-step rollback

Freeform polyline sketch extruded by seed, and ISO 273 clearance and tap-drill holes Dimension-driven configurations L80, W40, and H12

Drawing annotation, localized standard drawing view, and sheet metal base flange Selective fillet, circular-edge chamfer, and assembly component insert

Core modeling, editing and rollback, freeform and standard holes, configurations, drawing and sheet metal, finishing and assembly. Each group is a separate GIF so it can be read or embedded independently.

System architecture

The system overview shows the conceptual loop; this section describes the deployed components.

Vulcan system architecture: Windows client, Python server, LLM provider, joined by one typed contract

Component view. Three processes joined by one typed contract; the client always runs beside SolidWorks.

Layer Stack Responsibility
Client C# / WPF / .NET Framework 4.8 Vulcan AI CommandManager tab, task pane, status window, DPAPI settings, editable JSON preview, COM execution
Transport HTTP REST / JSON POST /api/v1/generate, plus SSE streaming at POST /api/v1/generate/stream
Server Python 3.10+ / Flask 3 Prompt assembly, LLM call, envelope and parameter validation, error mapping
Model OpenAI-compatible API or Anthropic Messages API JSON feature tree generation
Deployment Docker, reverse proxy, or bare metal Server anywhere; client beside SolidWorks

The add-in registers a Vulcan AI CommandManager tab for parts, assemblies, and drawings, with a toolbar, menu commands, and a docked task pane. Each command has its own icon. The task pane is the primary entry point; if it cannot be created, the add-in falls back to a modal WPF panel.

Vulcan AI CommandManager tab with eight commands and the docked task pane showing a plate prompt

The Vulcan AI tab and command group in SolidWorks 2025. Each command opens the task pane, a dialog, the log folder, or a status view.

Refreshed Vulcan task pane with feature examples, quick tools, prompt, generate button, and colored status banner Vulcan status window showing server address, provider, connection health, last action, feature count, and update time

The docked task pane keeps feature examples and health checks one click away; the status window records the last action, feature count, and errors. Captured from the installed add-in.

Editable JSON preview with validation, revision input, and execute/cancel actions Run result window with a snapshot, geometry checks, bounding box, volume, and warnings

The preview window keeps the JSON editable and validates it before execution; the result window shows the snapshot, geometry checks, and warnings after a run. Captured from the installed add-in.

Quick start

Prerequisites

Component Requirement
Server Python 3.10–3.11 and an OpenAI-compatible API key
Client Windows 10/11, SolidWorks 2025 (tested), .NET Framework 4.8
Build tools Visual Studio 2022 with the .NET desktop workload
Network The client must reach the server; the server must reach the LLM provider

1. Clone the repository

git clone https://github.com/Robusr/Vulcan.git
cd Vulcan

2. Start the server

cd server

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate

pip install -r requirements.txt
cp .env.example .env
# Edit .env: provider key, base URL, and model name

python app.py
# → http://127.0.0.1:5000

The server binds 127.0.0.1:5000 by default and keeps debug mode off unless FLASK_ENV=development. Set HOST=0.0.0.0 only behind a trusted reverse proxy, and set VULCAN_API_TOKEN before exposing the server.

3. Or run it with Docker

cd server
docker build -t vulcan-server .
docker run --rm -p 5000:5000 --env-file .env vulcan-server

4. Verify the API

curl -s http://127.0.0.1:5000/api/v1/generate \
  -H "Content-Type: application/json" \
  -d '{"prompt":"前视基准面拉伸200x100x20底座,四角各打一个直径10mm通孔"}'

The response is the feature tree itself, not a wrapper. If VULCAN_API_TOKEN is set, add -H "Authorization: Bearer $VULCAN_API_TOKEN". The first request may take a few seconds while the model runs.

5. Install or build the client

Option A — prebuilt installer. Prebuilt installers can be distributed through GitHub Releases, or built locally. From client\Vulcan.SolidWorksClient, run build_installer.ps1 after building Release | x64; it stages the payload in dist/ and produces Vulcan Setup/Output/Vulcan-Setup-1.4.0.exe. The installer requests elevation, registers the x64 add-in with RegAsm silently, and leaves no console window open. After it finishes, start SolidWorks and configure the client: click 设置 in the task pane or on the Vulcan AI tab, then enter the server URL, an optional shared token, and, if you want to use your own provider key, the LLM API key, base URL, and model. Settings are stored in %APPDATA%\Vulcan\settings.json with the secrets encrypted by Windows DPAPI.

Option B — build from source.

  1. Open client/Vulcan.SolidWorksClient/Vulcan.SolidWorksClient.sln in Visual Studio 2022.
  2. Restore NuGet packages (the client uses Newtonsoft.Json).
  3. The project references the SolidWorks interop assemblies in ReferenceDLL/. Replace those files if your SolidWorks version differs.
  4. Build Release | x64. SolidWorks is 64-bit; do not ship an x86 build.
  5. From client\Vulcan.SolidWorksClient, run build_installer.ps1 to stage the payload, then execute dist\install.bat from an elevated command prompt, or run RegAsm.exe Vulcan.SolidWorksClient.dll /codebase directly.
  6. Restart SolidWorks and open a Part document. The Vulcan AI tab, toolbar, and task pane should appear.
  7. Open 设置 from the task pane or the Vulcan AI tab and enter your server URL, for example https://vulcan.example.com, plus VULCAN_API_TOKEN if the server requires one. The equivalent Windows environment variables (VULCAN_SERVER_URL, VULCAN_API_TOKEN) remain as a fallback when the dialog is empty.

6. Generate your first model

Open the Vulcan panel and try one of these:

前视基准面拉伸200x100x20底座,四角各打一个直径10mm通孔
Create a 200 x 100 x 20 mm base on the front plane, with a 10 mm through hole at each corner.
Créez une base de 200 x 100 x 20 mm sur le plan de face, avec un trou traversant de 10 mm à chaque coin.

Click 开始生成 (Generate). The add-in fetches a feature tree and opens an editable JSON preview. Review the parameters, adjust anything the model got wrong, and click 执行建模 (Execute). Only then does the modeler build the features, zoom to fit, and leave the model as an editable feature tree. Cancelling the preview leaves SolidWorks untouched.

Documentation

The detailed guides live under docs/en/:

Release history: CHANGELOG.md.

Roadmap

  • General datum-plane routing.
  • Revolve, fillet, and chamfer features.
  • Sweep, loft, and rib features.
  • Linear/circular patterns and mirroring.
  • Hole Wizard and hole-array enhancements.
  • Native English and French system prompts, not only multilingual model behavior.
  • Provider adapters and streaming responses.
  • Optional bearer-token authentication and per-IP rate limiting.
  • Bring-your-own-key provider settings with local DPAPI storage.
  • Editable JSON preview before execution.
  • Self-elevating, quiet install and uninstall scripts.
  • Prompt regression tests and a Python CI workflow.
  • A mocked COM layer for client CI.
  • A task-pane UI instead of a modal panel.
  • Assembly-level operations and drawing annotations.
  • Iterative revision from the preview with the current feature tree.
  • Document-aware generation (units, bounding box, feature names, selection).
  • Automatic repair of rejected model output.
  • Local run history, replay, and one-step rollback.
  • Termination controls and selective fillet/chamfer edges.
  • Existing dimension editing with rollback.
  • Offset datum planes for sketches, bosses, and cuts.
  • Runtime geometry verification and snapshots.
  • Freeform sketches and standard metric holes.
  • Dimension-driven configurations and part families.
  • Drawing views; assembly insertion already exists.
  • Sheet metal base flange.
  • Assembly mates, sheet metal edge flanges, and weldments.

All planned roadmap items are complete. New work is tracked in GitHub issues.

Contributing

Pull requests are welcome. For significant changes, open an issue first so the approach can be discussed.

Good places to help:

  • Features: add new feature types and shape handlers in SwModeler.
  • Providers: abstract the LLM client further and add provider-specific adapters.
  • Testing: extend the Python tests and build a COM abstraction that can run in CI.
  • Documentation: improve the landing pages or add a guide under docs/<language>/, then run python scripts/check_docs.py.

Before opening a pull request, run pytest, pip-audit, and the client test runner, exercise at least one prompt end to end, and keep .env, logs, and build artifacts out of the commit. The project is GPLv3; contributions are accepted under the same license.

See CONTRIBUTING.md for setup, tests, docs, and release conventions.

License

Distributed under the GNU General Public License v3.0. Derivative works must also be open-sourced under GPLv3. See LICENSE for the full text.


Built by Robusr — because learning SolidWorks shouldn't require a 200-page manual.

Explore related projects

Loading…