solidworks_mcp.tools.support_levels¶
solidworks_mcp.tools.support_levels ¶
How far to trust each registered tool, in one reviewable table.
Every tool has exactly one support level:
- stable: checked by a live test on real SolidWorks, every input used, no known fault (or it never calls SolidWorks and is unit-tested);
- beta: works on SolidWorks, but has a known fault or covers only part of its COM call;
- experimental: implemented, never checked on real SolidWorks;
- planned: registered, but no adapter implements it yet (its description says "Not available yet"); its reason names the queue item that builds it;
- deprecated: works, but another tool replaces it; it keeps working
until the next major release after
since, when it is removed.
ToolRegistrar adds the level to each tool's tags and, for a beta,
experimental or deprecated tool, a warning to its successful results and
the same sentence at the start of its description. Fixing a fault
in the queue's small-faults list moves its tool up a level here.
Attributes¶
OFFLINE_FAMILIES
module-attribute
¶
SUPPORT_LEVELS
module-attribute
¶
SUPPORT_LEVELS: dict[str, Support] = {'calculate_mass_properties': _deprecated('get_mass_properties'), 'check_interference': _STABLE, 'get_mass_properties': _STABLE, 'verify_model': _STABLE, 'generate_vba_code': _STABLE, 'discover_solidworks_docs': _STABLE, 'find_related_api_members': _STABLE, 'lookup_api_interface': _STABLE, 'get_api_enum': _STABLE, 'lookup_api_method': _STABLE, 'search_solidworks_api_help': _STABLE, 'add_dimension': _STABLE, 'add_drawing_view': _deprecated('create_drawing_view'), 'add_note': _STABLE, 'auto_center_marks': _STABLE, 'auto_dimension_view': _STABLE, 'check_drawing': _STABLE, 'create_detail_view': _STABLE, 'create_drawing_view': _STABLE, 'create_section_view': _STABLE, 'create_technical_drawing': _STABLE, 'list_drawing_views': _STABLE, 'update_sheet_format': _STABLE, 'update_title_block': _STABLE, 'compare_drawing_versions': _STABLE, 'add_datum_tag': _STABLE, 'add_gtol': _STABLE, 'arrange_dimensions': _STABLE, 'generate_drawing_package': _STABLE, 'insert_bom_table': _STABLE, 'insert_model_dimensions': _STABLE, 'set_sheet_scale': _STABLE, 'export_flat_pattern': _STABLE, 'get_custom_properties': _STABLE, 'get_material': _STABLE, 'list_available_materials': _STABLE, 'list_model_dimensions': _STABLE, 'measure_entities': _STABLE, 'set_custom_property': _STABLE, 'set_material': _STABLE, 'export_dwg': _STABLE, 'export_iges': _STABLE, 'export_image': _STABLE, 'export_pdf': _STABLE, 'export_step': _STABLE, 'export_stl': _STABLE, 'activate_document': _STABLE, 'classify_feature_tree': _STABLE, 'get_file_properties': _deprecated('get_model_info'), 'get_model_info': _STABLE, 'get_selected_entities': _STABLE, 'list_configurations': _STABLE, 'create_configuration': _STABLE, 'activate_configuration': _STABLE, 'delete_configuration': _STABLE, 'create_exploded_view': _STABLE, 'set_exploded_view': _STABLE, 'pattern_components': _STABLE, 'mirror_components': _STABLE, 'replace_component': _STABLE, 'add_balloons': _STABLE, 'list_equations': _STABLE, 'set_equation': _STABLE, 'delete_equation': _STABLE, 'list_features': _STABLE, 'list_open_documents': _STABLE, 'load_assembly': _deprecated('open_model'), 'load_part': _deprecated('open_model'), 'pack_and_go_assembly': _STABLE, 'save_as': _STABLE, 'save_assembly': _deprecated('save_file'), 'save_body_as_part': _STABLE, 'save_file': _STABLE, 'save_as_template': _STABLE, 'save_part': _deprecated('save_file'), 'execute_macro': _STABLE, 'add_chamfer': _STABLE, 'add_fillet': _STABLE, 'add_mate': _STABLE, 'close_model': _STABLE, 'create_assembly': _STABLE, 'create_axis': _STABLE, 'create_cut_extrude': _STABLE, 'create_drawing': _STABLE, 'create_extrusion': _STABLE, 'create_loft': _STABLE, 'create_part': _STABLE, 'create_reference_plane': _STABLE, 'create_reference_point': _STABLE, 'create_revolve': _STABLE, 'create_sweep': _STABLE, 'delete_feature': _STABLE, 'get_dimension': _STABLE, 'insert_component': _STABLE, 'list_components': _STABLE, 'mirror_feature': _STABLE, 'open_model': _STABLE, 'pattern_circular': _STABLE, 'pattern_linear': _STABLE, 'create_shell': _STABLE, 'add_draft': _STABLE, 'create_rib': _STABLE, 'create_base_flange': _STABLE, 'add_edge_flange': _STABLE, 'create_sketched_bend': _STABLE, 'set_flat_pattern': _STABLE, 'create_hole': _STABLE, 'list_hole_sizes': _STABLE, 'add_cosmetic_thread': _STABLE, 'rebuild_model': _STABLE, 'rename_feature': _STABLE, 'select_face_edges': _STABLE, 'select_feature': _STABLE, 'set_component_state': _STABLE, 'set_dimension': _STABLE, 'set_units': _STABLE, 'suppress_feature': _STABLE, 'undo': _STABLE, 'reset_circuit_breaker': _STABLE, 'add_arc': _STABLE, 'add_centerline': _STABLE, 'add_circle': _STABLE, 'add_ellipse': _STABLE, 'add_sketch_text': _STABLE, 'set_sketch_text': _STABLE, 'add_sketch_fillet': _STABLE, 'add_sketch_chamfer': _STABLE, 'add_slot': _STABLE, 'sketch_trim': _STABLE, 'sketch_extend': _STABLE, 'set_construction_geometry': _STABLE, 'add_line': _STABLE, 'add_polygon': _STABLE, 'add_rectangle': _STABLE, 'add_sketch_constraint': _STABLE, 'add_sketch_dimension': _STABLE, 'add_spline': _STABLE, 'check_sketch_fully_defined': _STABLE, 'create_sketch': _STABLE, 'exit_sketch': _STABLE, 'sketch_circular_pattern': _STABLE, 'sketch_linear_pattern': _STABLE, 'sketch_mirror': _STABLE, 'sketch_offset': _STABLE, 'sketch_convert_entities': _STABLE, 'sketch_tutorial_simple_hole': _deprecated(None), 'compare_templates': _STABLE, 'generate_vba_assembly_insert': _STABLE, 'generate_vba_assembly_mates': _STABLE, 'generate_vba_batch_export': _STABLE, 'generate_vba_drawing_dimensions': _STABLE, 'generate_vba_drawing_views': _STABLE, 'generate_vba_extrusion': _STABLE, 'generate_vba_file_operations': _STABLE, 'generate_vba_macro_recorder': _STABLE, 'generate_vba_part_modeling': _STABLE, 'generate_vba_revolve': _STABLE}
Classes¶
Support
dataclass
¶
One tool's support level and why it isn't higher.
Attributes:
| Name | Type | Description |
|---|---|---|
level |
SupportLevel
|
The tool's support level. |
reason |
str
|
One line on the gap; empty only for a stable tool. A
deprecated tool's reason is |
since |
str
|
The version a deprecated tool was deprecated in; empty for every other level. |
Methods:¶
__post_init__ ¶
Require a reason below stable, and a version for a deprecated tool.
Raises:
| Type | Description |
|---|---|
ValueError
|
If a level below stable has no reason, a stable tool
has one, or |
Source code in src/solidworks_mcp/tools/support_levels.py
replacement ¶
The tool a deprecated tool's reason names.
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: The name in backticks in |
str | None
|
|
Source code in src/solidworks_mcp/tools/support_levels.py
warning ¶
The sentence a successful beta, experimental or deprecated result carries.
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: |
str | None
|
|
str | None
|
planned tool never succeeds). |
Source code in src/solidworks_mcp/tools/support_levels.py
SupportLevel ¶
Bases: StrEnum
The five support levels: four by trust, then the replaced tools.
Functions:¶
_deprecated ¶
A tool deprecated in 2.1.0 in favour of replacement (or none).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
replacement
|
str | None
|
The registered tool that replaces it, or None. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Support |
Support
|
The deprecated entry. |
Source code in src/solidworks_mcp/tools/support_levels.py
_major ¶
deprecation_problems ¶
deprecation_problems(levels: Mapping[str, Support], registered: Set[str], version: str) -> list[str]
What is wrong with the table's deprecated entries.
A deprecated tool names a registered replacement (or says there is none), and is gone once the package's major version passes the one it was deprecated in.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
levels
|
Mapping[str, Support]
|
The support table. |
required |
registered
|
Set[str]
|
The names of the registered tools. |
required |
version
|
str
|
The package version, |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: One line per problem; empty when there is none. |
Source code in src/solidworks_mcp/tools/support_levels.py
planned_problems ¶
Planned tools whose reason does not name the queue item that builds them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
levels
|
Mapping[str, Support]
|
The support table. |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: One line per problem; empty when there is none. |