Repository navigation
dsh-solidworks 0.2.0
SOLIDWORKS for DeepSeek Harness. dsh now models parts, assembles them, checks them and draws them, in a running SOLIDWORKS 2016 or later, on the same Windows PC or in a Windows VM on your Mac.
dsh plugin --profile web add @dshworks/dsh-solidworks
Same Windows PC: nothing else. dsh on a Mac, SOLIDWORKS in a Parallels VM: start dsh once, then in the VM run \\Mac\Home\.dsh\dsh-solidworks\windows\pair.cmd. Already paired on 0.1.0: update the plugin and run pair.cmd once more so the VM gets the new bridge.
New in 0.2.0: 8 tools, 21 in all
sw_newandsw_build: model a part in steps. Sketch lines, polylines, rectangles, circles, arcs and centerlines on a plane or a face; extrude or cut (blind, through all, mid-plane, draft), revolve, fillet, chamfer, shell, offset plane, delete. Every coordinate is a model-space point in mm; faces and edges are picked by a point on them. A failing step rolls the call back. Each feature comes back with its dimensions, and the part with its volume and box.sw_probe: the face, edge or vertex at a point, or whatever you have selected in SOLIDWORKS right now; distance and angle between two.sw_study: up to 50 variants of dimensions and variables in one call, each rebuilt and measured, every value put back and checked.sw_assemble,sw_interference,sw_bom: insert saved parts and mate them, find overlapping parts with their volume, count a bill of materials (optionally as CSV).sw_drawing: views in first- or third-angle projection at the largest standard scale that fits, with the model's dimensions.sw_viewputs up to six views on one picture and no longer crops wide models;sw_savewith a path saves a new document as a file.
Your work stays yours
The bridge deletes only features it built in the session, keeps a sketch of yours that one of them consumed, refuses names already in the part before making anything, and refuses to build while the rollback bar is above the end of the tree. Source files stay read-only by default; saving over them still needs --allow-save.
Fixed
sw_parameterscould name a parent feature's dimension after the feature displaying it (an extrude shows its sketch plane's offset) and hide the real one.
Verified, 2026-10-18
- SOLIDWORKS 2016 SP1 and 2019 SP0: 64 of 64 live checks each, with this exe, against values computed from the geometry asked for (volumes, areas, overlap volumes, a parts count, a PDF).
- Real dsh 0.2.0-rc.2 with
deepseek-flash: one prompt modeled a plate, checked its volume, drew it and exported the PDF in 11 tool calls, all completed. - Not yet: SOLIDWORKS 2020+, Windows 10, x64 hardware; lofts, sweeps, patterns, Hole Wizard and sheet metal are not in
sw_build.
The exe
swbridge.exe below is the one in the npm package. CI rebuilds it from source to the same SHA-256 (bridge/swbridge.exe.sha256, .NET SDK 8.0.426):
18716d1b5e45ee3c37001321930952301a6f7fa4b4b7adc0f9cf63c359e5d3b5 swbridge.exe
It is not code-signed; Windows SmartScreen may ask before the first run of a downloaded copy.
🤖 Generated with Claude Code