Skip to content

v2.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 09:07
· 14 commits to main since this release
0201611

Changed

  • generate_drawing_package fits 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.
  • subtitle is 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_fillet and add_sketch_chamfer
    round or bevel corners picked by their points (a rectangle's corners have
    no ids of their own); add_slot draws a straight or arc slot and gives
    its area; sketch_trim and sketch_extend cut back or lengthen an entity
    at a point; set_construction_geometry makes entities construction
    geometry, or normal again, by id. add_arc takes kind (center,
    three_point, tangent) and add_rectangle takes from_center. Demo:
    a slotted bracket plate, on the demos page.

  • Equations and global variables (queue item 29): list_equations,
    set_equation and delete_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 as equation_refused and changes nothing. Named configurations
    are set one at a time; the reply's values gives 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
    with center_at centres 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_ellipse takes an angle, the degrees its major axis is turned
    from +x, and an ellipse can be dimensioned: add_sketch_dimension
    with major_axis or minor_axis on an ellipse's id sizes that axis,
    so an equation can drive it.

  • add_polygon takes an angle: 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 diameter dimension
    (add_sketch_dimension) on a polygon's id sizes it by the circle drawn
    inside it, across flats for a hexagon, so an equation can drive it.

  • save_body_as_part leaves 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_documents names it.

  • execute_macro runs VBA source (queue item 26, #96), when the server
    is started with SOLIDWORKS_MCP_ALLOW_VBA_SOURCE set (off by default:
    VBA can do anything the user can). The source is written to a .swb file and
    run like a macro file, with the dialog watchdog; the reply names the file
    and repeats the source. Refused as vba_source_off otherwise.

  • Restricted VBA source (queue item 28): SOLIDWORKS_MCP_ALLOW_VBA_SOURCE
    is off (default), restricted or full. restricted runs 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
    as vba_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): while execute_macro runs, a watchdog thread (Win32 only,
    no COM) looks for a dialog the SolidWorks process opened. One still open
    after dialog_timeout seconds (30) is answered with Cancel, or its only
    button, and the run fails as macro_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, and reset_circuit_breaker has 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 typecheck runs mypy over
    the package, and CI fails on any error. The 139 errors on main are
    fixed with no change in behaviour, apart from one fault it found:
    dimension layout raised TypeError for 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 a needs: tag, nothing, installed or running, 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_bend and set_flat_pattern (flatten or fold, with the
    blank's size). With the existing export_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_pattern now 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; all by default), and SOLIDWORKS_MCP_TOOL_MODE=search lists
    four tools in place of the rest, search_tools and call_tool among
    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, selftest reports 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, .asmdot or
    .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_material also 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. With material it 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) and check_drawing. No
    tool is planned any more.

  • Changes in chosen configurations (queue item 13, section 3):
    set_dimension and suppress_feature take configurations: 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 as invalid_input
    before anything changes.

  • The Hole Wizard library (queue item 22), checked live on SolidWorks
    2026: list_hole_sizes lists 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; takes fastener to pick a hole type (dowel holes, a bolt's
    counterbore); and adds the standards ansi_metric, din and jis. On a
    simple hole M6 now means a screw clearance hole and 6 a drilled one.
    134 tools.

  • Configurations (queue item 13), checked live on SolidWorks 2026:
    create_configuration (optionally derived from another),
    activate_configuration and delete_configuration (not the active one or
    the only one). list_configurations now also reports active. 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
    with positions several 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, and sketch_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 --poster adds 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_sketch takes face_point (#206): a point in mm on a flat
    face of the body, in place of plane. 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 of plane and face_point; a point
    in the air or on a curved face fails with invalid_input.

  • A deprecated support level (#174). A deprecated tool still works;
    its description and successful results open "Deprecated: use <tool>.",
    it is tagged level: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 with create_, add_, get_, list_, set_ and the rest;
    the names registered before it are listed as exceptions.

  • get_model_info reports the file's details: size_bytes, created
    and modified, read from the file on disk (null for a document never
    saved).

  • save_file takes overwrite, and checks a new file_path before
    SolidWorks is asked: the folder exists and is writable, the extension
    matches the document (.sldprt, .sldasm, .slddrw), and no file is there.

Fixed

  • add_fillet works on SolidWorks 2024 (#255): below 2025 it called
    IFeatureManager.FeatureFillet3 with 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_view applies scale (#256): the view kept the sheet's
    scale and scale_applied was 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, a view_type such as isometric sets 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 through uvx can't write to. It is now saved in
    ~/.solidworks_mcp/docs-index; an index in the old folder is still read.
  • construction is honoured on SolidWorks: add_line, add_circle
    and add_rectangle accepted construction but drew normal geometry, while
    the reply said "construction": true. The tools now set it on the new
    entity.
  • create_cut_extrude with both_directions on 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, depth in total, as create_extrusion does.
  • add_fillet on the current selection (empty edge_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_features returns rows in tree order. When SolidWorks stopped
    the forward walk at the system folders, the rest came newest first.
  • verify_model counts a plane the agent made. It skipped the first
    three reference planes in row order, so with rows newest first it counted
    Front Plane and skipped Plane1.
  • list_model_dimensions lists each dimension once, under its own
    feature.
    It walks the tree the way list_features does, and takes each
    dimension's feature from its full name: D1@Plane1 is listed under
    Plane1, never also under a cut sketched on that plane.
  • export_stl keeps its STL options. SaveAs2 was called with six
    arguments of the wrong types, so it always failed with a type mismatch
    and SaveAs3 wrote the file without merging the bodies. It now gets its
    eight arguments; if it still writes nothing, SaveAs3 writes the file and
    the reply's warning says the options weren't applied.

Changed

  • check_drawing_standards, which never worked, is now check_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 (--look in the script).

  • save_file keeps a file already at file_path unless overwrite
    is on, and refuses a path with another document type's extension. Before,
    it replaced the file. Saving in place (no file_path) is unchanged.

Deprecated

Each still works until 3.0.0; use the tool named instead (#174):

  • load_part, load_assembly: use open_model.
  • save_part, save_assembly: use save_file (pack_and_go_assembly to
    copy an assembly with its referenced parts).
  • calculate_mass_properties: use get_mass_properties.
  • get_file_properties: use get_model_info.
  • add_drawing_view: use create_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_table was 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).