dsh-sw-cad
提供驱动AutoCAD和SolidWorks的工具与MCP服务 适合需要通过自然语言控制本地CAD和SolidWorks进行绘图与建模的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:27painter/dsh-sw-cad說明文件
閱讀完整 README ↗Usage
Just describe the drawing. The skill loads itself.
Open AutoCAD, draw a bearing housing: base 120×80×10, upright 60 high × 12 thick,
φ40 through hole on top. ISO A3 sheet with title block and dimensions, save to
D:\AutoCad and export PDF.
In SolidWorks, build a flange: OD 100, 20 thick, 30 bore, four M10 bolt holes on a
bolt circle. Save as SLDPRT and export STEP.
Practical notes, learned the hard way:
- SolidWorks tools nest their arguments. The upstream tools take their payload under a
paramskey, so a call looks likecall_tool(name="solidworks_sketch_and_extrude", arguments={"params": {"shape": "rectangle", "width_mm": 60, "height_mm": 40, "depth_mm": 10}}). AutoCAD tools take theirs flat. Getting this wrong fails with a pydantic message about a missingparamsfield, which is the hint. - Say one CAD at a time. Mentioning both loads both skills and mixes the task.
- Ask for a plan first on anything complex. Both skills have a planning step; approving a plan before geometry is drawn is cheaper than undoing a bad drawing.
- Ask for the preview. The AutoCAD path ends in an 8-step validator plus a screenshot; the SolidWorks path exports four orthographic previews. "Show me the preview" is a fair request and the skills honor it. One caveat, measured here: the AutoCAD screenshot needs the window to be visible — with AutoCAD hidden or minimised it comes back blank. The geometry itself is always verifiable through the API (handles, bounding boxes, mass properties), so do not treat a blank image as a failed drawing.