Repository navigation
Changed
generate_drawing_packagefits every title-block field (#158):
not just DWG NO. and TITLE but every field the sheet format fills from a
property (material, drawn by, company...), each listed in the reply's
title_block.subtitleis the TITLE's second line, not the company (#158):
ISO 7200 treats it as the supplementary title under the title, and the
company field as the legal owner's name only. The TITLE is set at 60% of
the format's height so both lines fit.
Added
-
Sketch essentials (queue item 32): six sketch tools agents reach
for next, 151 tools in all.add_sketch_filletandadd_sketch_chamfer
round or bevel corners picked by their points (a rectangle's corners have
no ids of their own);add_slotdraws a straight or arc slot and gives
its area;sketch_trimandsketch_extendcut back or lengthen an entity
at a point;set_construction_geometrymakes entities construction
geometry, or normal again, by id.add_arctakeskind(center,
three_point,tangent) andadd_rectangletakesfrom_center. Demo:
a slotted bracket plate, on the demos page. -
Equations and global variables (queue item 29):
list_equations,
set_equationanddelete_equation. One value ("Width" = 60mm) can
drive several dimensions ("D1@Sketch1" = "Width" / 2);set_equation
adds or changes one, in every configuration by default, solves and
rebuilds, and gives the new value. An expression SolidWorks can't use
fails asequation_refusedand changes nothing. Named configurations
are set one at a time; the reply'svaluesgives each one's value. Demo:
one variable sizes a steel combination wrench (13, 19 and 8 mm, 27
equations) whose handle is lettered with its own size, on the demos page
and in the README. -
add_sketch_text: writes text in the open sketch at a height, and
withcenter_atcentres it on a point (measured from the text's own
edges, since SolidWorks' alignment doesn't centre it). The text can show
a custom property ($PRP:"Name"), so an equation-driven part can carry
its size; cut or extrude it like any sketch. -
set_sketch_text: rewrites the text in a named sketch and rebuilds,
giving the text before and after. SolidWorks doesn't redraw sketch text
when an equation changes the part; writing it again does. 145 tools. -
add_ellipsetakes anangle, the degrees its major axis is turned
from +x, and an ellipse can be dimensioned:add_sketch_dimension
withmajor_axisorminor_axison an ellipse'sidsizes that axis,
so an equation can drive it. -
add_polygontakes anangle: the degrees its first corner is
turned from +x (0 by default), e.g. two hexagons 30° apart for a
12-point opening. -
A polygon can be dimensioned: a
diameterdimension
(add_sketch_dimension) on a polygon'sidsizes it by the circle drawn
inside it, across flats for a hexagon, so an equation can drive it. -
save_body_as_partleaves no extra assembly open (queue item 27,
#101): a new, unsaved assembly SolidWorks opens alongside Save Bodies is
closed, the part is made active again, and the reply's
closed_documentsnames it. -
execute_macroruns VBA source (queue item 26, #96), when the server
is started withSOLIDWORKS_MCP_ALLOW_VBA_SOURCEset (off by default:
VBA can do anything the user can). The source is written to a.swbfile and
run like a macro file, with the dialog watchdog; the reply names the file
and repeats the source. Refused asvba_source_offotherwise. -
Restricted VBA source (queue item 28):
SOLIDWORKS_MCP_ALLOW_VBA_SOURCE
isoff(default),restrictedorfull.restrictedruns source only
when every name in it is a SolidWorks API member, a safe VBA function or
declared by the macro;Shell,CreateObject, file statements and about
100 SolidWorks members that save, open, run or change settings are refused
asvba_source_refused, naming each line. Every value, the blocked list
and the limits are in the installation guide. -
A macro that waits for the user no longer hangs the server (queue
item 25, #97): whileexecute_macroruns, a watchdog thread (Win32 only,
no COM) looks for a dialog the SolidWorks process opened. One still open
afterdialog_timeoutseconds (30) is answered with Cancel, or its only
button, and the run fails asmacro_waited_for_user, naming the dialog.
A Yes/No prompt is left for the user. Checked live. -
Tool catalog check (queue item 24, #156): a test reads every catalog
page and fails when a tool has no entry, an entry's parameter table
doesn't match the tool's inputs, or its sample call isn't one the tool
accepts. The 20 tools that had no entry have one, about 30 stale tables
and samples are fixed, andreset_circuit_breakerhas a Server Admin
page.src/utils/generate_tool_catalog.py, which overwrote the
hand-written pages, is removed. -
get_api_enum(queue item 23, #95): an enum's members and their
integer values, by the enum's name or a member's, read from SolidWorks'
constants type library (swconst.tlb), checked live (swUnitSystem_IPS
is 3). The API index now holds the enums too (format 2.1; a saved index
is rebuilt once). 140 tools. -
mypy gates CI (queue item 17, #157):
make typecheckruns mypy over
the package, and CI fails on any error. The 139 errors onmainare
fixed with no change in behaviour, apart from one fault it found:
dimension layout raisedTypeErrorfor a leader with no lines when asked
to place it inside its view; it now goes outside. Every# type: ignore
names its error code (checked by a test). -
What each tool needs from SolidWorks (queue item 16, #79): every tool
has aneeds:tag,nothing,installedorrunning, from one table
(tools/requirements.py). The tools overview lists the 20 tools that
don't need SolidWorks running, and says any licence that runs SolidWorks
is enough: no tool calls an add-in or a Professional- or Premium-only
feature. -
Sheet metal (queue item 15, #57), checked live on SolidWorks 2026:
create_base_flange(a plate or a bent profile, with thickness, bend
radius and K-factor read back),add_edge_flange(a flange off an edge
picked by a point, its length measured from that edge),
create_sketched_bendandset_flat_pattern(flatten or fold, with the
blank's size). With the existingexport_flat_pattern, a part goes from
sketch to DXF; the flanged test plate's blank measured 78.7124 mm
against 78.712 by hand.export_flat_patternnow asks for a part
never saved to be saved first (SolidWorks reads it from its file).
139 tools. -
Shorter tool lists (queue item 14, #176), checked live:
SOLIDWORKS_MCP_TOOLSETS
lists only some groups of tools (core,drawing,automation,vba,
docs;allby default), andSOLIDWORKS_MCP_TOOL_MODE=searchlists
four tools in place of the rest,search_toolsandcall_toolamong
them: about 900 tokens a turn instead of about 55,000. Search mode
leaves deprecated tools out, so a search finds their replacements. The server's
instructions and the skill follow the settings,selftestreports them,
and the installation guide has the measured sizes. Nothing changes with
neither set. -
save_as_template(queue item 21), checked live on SolidWorks 2026:
saves the active part, assembly or drawing as a.prtdot,.asmdotor
.drwdot, by path or by name into SolidWorks' template folder, so
create_part(and the others) can start the next document with the same
units, material and properties. SolidWorks then has the template open in
place of the document, as File > Save As does, and the reply says so.
135 tools. -
Material properties (queue item 20), checked live on SolidWorks 2026:
get_materialalso returns the
material's elastic modulus, Poisson's ratio, shear modulus, tensile, yield
and compressive strength, density, thermal expansion, conductivity and
specific heat, in SI units with SolidWorks' labels, read from the
material's library entry. Withmaterialit reads any library material
without assigning it, and needs no open document. -
The drawing pack (queue item 12, #102), stable, checked live
on SolidWorks 2026:create_section_view(a line across a view),create_detail_view
(a circle in a view, at a scale),add_dimension(edges picked by sheet
points, the value read back),auto_dimension_view(baseline or chain,
counted before and after),update_title_block(revision, title and the
rest, written to the properties the format shows),update_sheet_format
(a new format and paper size, the views kept) andcheck_drawing. No
tool is planned any more. -
Changes in chosen configurations (queue item 13, section 3):
set_dimensionandsuppress_featuretakeconfigurations:this(the
active one, as before),all, or a list of names, and the reply names
where the change applied. An unknown name is refused asinvalid_input
before anything changes. -
The Hole Wizard library (queue item 22), checked live on SolidWorks
2026:list_hole_sizeslists a
standard's hole types and sizes, or one size's dimensions, read-only from
SolidWorks' installed Toolbox library (no SolidWorks needed).create_hole
now checks the size there first and refuses one that doesn't exist, naming
the nearest; takesfastenerto pick a hole type (dowel holes, a bolt's
counterbore); and adds the standardsansi_metric,dinandjis. On a
simple holeM6now means a screw clearance hole and6a drilled one.
134 tools. -
Configurations (queue item 13), checked live on SolidWorks 2026:
create_configuration(optionally derived from another),
activate_configurationanddelete_configuration(not the active one or
the only one).list_configurationsnow also reportsactive. With
design tables out (they don't work through COM here), this is how an agent
makes variants of a part. 130 tools become 133. -
Seven part-feature tools (queue item 11, #105), checked live on
SolidWorks 2026:create_hole(Hole Wizard: simple, counterbore,
countersink or tapped, ISO or ANSI inch, at a point on a flat face, and
withpositionsseveral holes in one feature, the way you place holes on
sketch points by hand),
add_cosmetic_thread,pattern_linear(a row or a grid),create_shell,
add_draft,create_rib, andsketch_convert_entities(copy model edges
or a face's outline into the open sketch). Faces and edges are picked by a
point in mm. Each solid feature reports its volume change, and one that
changed nothing is removed again and reported as a failure. 123 tools
become 130. A simple hole through all, which SolidWorks won't make, is
made blind through the part with a warning; a tapped hole's thread stops
at 80% of a blind hole's depth. A new demo drills a plate with each hole
type, a mirror and a ring of six. -
Demo GIFs: a caption can hold for a set time (used to say a failure
is on purpose before it happens), and motion GIFs play at 2.5x instead of
5x. Every motion GIF now opens on its finished result for 2 s: most opened
on SolidWorks' empty start screen, so their README cells looked blank (the
monitor stand's had lost its 2026-11-06 fix when it was re-recorded).
make_demo_gif.py --posteradds that frame to a GIF already built without
re-encoding it. -
Our own
llms.txt, served at the docs site's root and built from the
docs: each entry's title and summary are copied word for word from its
page, and a test fails when the file and the pages disagree, when it
links outside this project, or when it holds HTML or hidden characters.
Nothing in it is written by hand. Ten pages got a real opening paragraph
to serve as their summary. -
Every link in the docs is checked. Links within the project (pages,
files, anchors, repository files) on every test run; every link to
another site after each docs deploy and weekly, failing a dead link or a
redirect to a different site, with a report of every URL
(python -m solidworks_mcp.doc_links check-external). The first run
fixed one moved link (the Anthropic console). -
create_sketchtakesface_point(#206): a point in mm on a flat
face of the body, in place ofplane. The sketch opens on that face and
moves with it when the model changes, so a pocket cut from it follows a
height edited later. Give exactly one ofplaneandface_point; a point
in the air or on a curved face fails withinvalid_input. -
A
deprecatedsupport level (#174). A deprecated tool still works;
its description and successful results open "Deprecated: use<tool>.",
it is taggedlevel:deprecated, and it is removed at the next major
release. The progress image leaves deprecated tools out of its count. -
A verb list for tool names, in the tool description standard: new
tools start withcreate_,add_,get_,list_,set_and the rest;
the names registered before it are listed as exceptions. -
get_model_inforeports the file's details:size_bytes,created
andmodified, read from the file on disk (null for a document never
saved). -
save_filetakesoverwrite, and checks a newfile_pathbefore
SolidWorks is asked: the folder exists and is writable, the extension
matches the document (.sldprt, .sldasm, .slddrw), and no file is there.
Fixed
add_filletworks on SolidWorks 2024 (#255): below 2025 it called
IFeatureManager.FeatureFillet3with 15 arguments where the method takes
14, so every fillet failed with "Invalid number of parameters". Every
version now makes the call checked live on 2026.create_drawing_viewappliesscale(#256): the view kept the sheet's
scale andscale_appliedwas always false. A given scale is now the view's
own and is read back; left out, the view uses the sheet's scale. With no
orientation, aview_typesuch asisometricsets the view instead of
giving a front view.- API lookups work when the server starts in a read-only folder (#257):
the index was saved relative to the working folder, which Claude Desktop
started throughuvxcan't write to. It is now saved in
~/.solidworks_mcp/docs-index; an index in the old folder is still read. constructionis honoured on SolidWorks:add_line,add_circle
andadd_rectangleacceptedconstructionbut drew normal geometry, while
the reply said"construction": true. The tools now set it on the new
entity.create_cut_extrudewithboth_directionson a Blind cut cut one way
only, so a slot meant to straddle its sketch plane came out beside it. It
is now a mid-plane cut,depthin total, ascreate_extrusiondoes.add_filleton the current selection (emptyedge_names, after
select_face_edges) built no fillet: reading the volume first rebuilt
the part, which cleared the selection. It no longer reads the volume in
that case. Found by queue item 14's live check.
Found building the monitor stand demo (#206):
list_featuresreturns rows in tree order. When SolidWorks stopped
the forward walk at the system folders, the rest came newest first.verify_modelcounts a plane the agent made. It skipped the first
three reference planes in row order, so with rows newest first it counted
Front Planeand skippedPlane1.list_model_dimensionslists each dimension once, under its own
feature. It walks the tree the waylist_featuresdoes, and takes each
dimension's feature from its full name:D1@Plane1is listed under
Plane1, never also under a cut sketched on that plane.export_stlkeeps its STL options.SaveAs2was called with six
arguments of the wrong types, so it always failed with a type mismatch
andSaveAs3wrote the file without merging the bodies. It now gets its
eight arguments; if it still writes nothing,SaveAs3writes the file and
the reply'swarningsays the options weren't applied.
Changed
-
check_drawing_standards, which never worked, is nowcheck_drawing: a
read-only completeness check whose findings name the tool that fixes each. -
The monitor stand demo sketches its pocket on the stand's top face,
with no reference plane, and its camera turns to an isometric view after
each feature (--lookin the script). -
save_filekeeps a file already atfile_pathunlessoverwrite
is on, and refuses a path with another document type's extension. Before,
it replaced the file. Saving in place (nofile_path) is unchanged.
Deprecated
Each still works until 3.0.0; use the tool named instead (#174):
load_part,load_assembly: useopen_model.save_part,save_assembly: usesave_file(pack_and_go_assemblyto
copy an assembly with its referenced parts).calculate_mass_properties: useget_mass_properties.get_file_properties: useget_model_info.add_drawing_view: usecreate_drawing_view.sketch_tutorial_simple_hole: no replacement; build the hole with the
sketching and feature tools.
Removed
33 tools that were registered but never implemented: every call returned
not_supported (#174). Clients that listed them only ever got an error.
Why each one went, and what does its job now, is in openspec/queue.md
("Removed tools").
- Analysis:
analyze_geometry,get_material_properties. - Automation:
automation_start_macro_recording,
automation_stop_macro_recording,batch_process_files,
create_template,execute_workflow,manage_design_table,
optimize_performance.manage_design_tablewas checked live first: on
SolidWorks 2026 the design table is inserted, but SolidWorks can't open it
in Excel to read it and makes no configurations from it. - Drawing:
add_annotation. - Drawing analysis:
analyze_drawing_annotations,
analyze_drawing_comprehensive,analyze_drawing_dimensions,
analyze_drawing_views,check_drawing_compliance,
generate_drawing_report,validate_drawing_completeness. - Export:
batch_export. - File management:
batch_file_operations,convert_file_format,
manage_file_properties. - Macros:
analyze_macro,batch_execute_macros,create_macro_library,
optimize_macro,start_macro_recording,stop_macro_recording. - Sketching:
tutorial_simple_hole. - Templates:
apply_template,batch_apply_template,extract_template,
list_template_library,save_to_template_library.
The seven planned tools left are drawing tools; each names the queue item
that builds them (the drawing pack).