Skip to content

Remove the FreeCAD, Fusion 360 and SolidWorks translators from the SDK - #100

Merged
NiJingzhe merged 5 commits into
devfrom
chore/remove-translators
Nov 26, 2026
Merged

NiJingzhe merged 5 commits into
devfrom
chore/remove-translators

Conversation

@NiJingzhe

Copy link
Copy Markdown
Collaborator

Summary

Removes the FreeCAD, Fusion 360 and SolidWorks translators from the SDK (breaking). The SDK no longer maintains them: few
people used them, they follow the operation-graph format closely and that format may change a lot, and the SolidWorks
backend is tied to a commercial connector. The package was copied with its history (53 commits) to a separate private
repository before this removal.

  • Deleted simplecadapi.translator, its tests, and the lazy translator submodule.
  • sca export keeps STEP, STL, OBJ and MJCF; the fcstd, freecad-script, fusion360-script and solidworks-script
    formats and --freecad-cmd / --document-name are gone.
  • package_units (used by the STEP/OBJ/STL/MJCF exporters) moves to simplecadapi.exporter.package_units.
  • The model JSON (export_model_json) and the operation graph stay the contract for any out-of-tree consumer.
  • Examples lose their FCStd steps; the skill pages export-and-translation become export; the generated API pages of
    the removed names are deleted.
  • The *_translation_output tests (translators of other libraries under tools/research) are unrelated and stay.

Five commits, one decision each: package_units move, examples, docs, the removal itself, CHANGELOG.

Evidence

  • No import of simplecadapi.translator is left in src, test, tests, tools, .github or pyproject.toml.
  • Full suite on this tree: 2693 passed, 68 skipped, 0 failed (run against the worktree's own source).
  • test_skill_lint, test_skill_build, test_auto_docs_gen, test_library_is_english, test_public_api_surface and the exporter
    tests pass.

Not done

  • Historical records are not rewritten (CHANGELOG, docs/updates, design-docs, recorded example transcripts and demos).
  • Anything outside this repository that calls simplecadapi.translator must move to the new package.

🤖 Generated with Claude Code

NiJingzhe and others added 5 commits November 26, 2026 19:33
… about to be removed

DECISION
simplecadapi/translator/package_units.py becomes simplecadapi/exporter/package_units.py (git mv;
the validated product-package units are used by the STEP, OBJ, STL and MJCF exporters and by
_surface_mesh, none of which is a translator). The imports of those five modules and of
test_translation_units_identity change; the module has no dependency on the rest of the package.

WHY
The translators (FreeCAD, Fusion 360, SolidWorks) leave the SDK in the next commit; this module
is the one part of simplecadapi/translator that the SDK itself needs.

EVIDENCE
test_translation_units_identity passes against this tree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DECISION
Delete export_fcstd.py and the translate_*_script.py files of examples/ap242_gmsh_volume_mesh, its
verify/fcstd_check.py, and examples/integrated_bldc_joint_actuator/export_fcstd.py; remove the FCStd
steps from the export.py / report.py scripts of the other examples that had them; update
examples/README.md, test_ap242_gmsh_example (it now covers the step, stl and obj exporters) and the
bracket and l_link export scripts. Recorded session transcripts, demos and build plans stay as they
ran, with a short note where a plan names the removed export.

WHY
These scripts called simplecadapi.translator and would crash now.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tors

DECISION
Rewrite the skill pages that documented the translators: workflows and domains
export-and-translation become export (links, SKILL.md and the table of contents follow; the domain
id is now "export"), product-export and the core pages lose their FreeCAD sections, and the root
README(s), the issue template and the native-port notes say that the translators moved out of the
SDK. The generated API pages of the removed functions and classes are deleted by the generator.
History (CHANGELOG, docs/updates, design-docs, recorded transcripts) is not rewritten.

EVIDENCE
test_skill_lint, test_skill_build, test_skill_cli, test_auto_docs_gen and test_library_is_english pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DECISION
Delete simplecadapi/translator (the translators and their shared interfaces), the translator tests,
and everything in code that used them: the fcstd / freecad-script / fusion360-script /
solidworks-script formats and --freecad-cmd / --document-name of `sca export` (STEP, STL, OBJ and
MJCF stay), the lazy `translator` submodule and its __all__ entry in simplecadapi/__init__.py, the
FreeCAD ty override in pyproject.toml, the translator handling in tools/auto_docs_gen.py, and the
translator outputs of src/cpp/tools/graph_parity (it still records and compares the model JSON).
The FreeCAD checks that four SDK feature tests carried (chamfer angle, helix handedness, ellipse
sketch, histcad constraints) go away with the translator; the chamfer test keeps its check that
the angle parameters are recorded in the graph, now on the exported JSON.

PROBLEM
The owner (2026-11-26): the translators should not be part of the SDK. Few people use them, they
follow the operation-graph format closely and that format may change a lot, and the SolidWorks
backend is tied to a commercial connector. Nobody maintains them in the SDK any more.

WHY THIS FIX
The package was copied with its 53-commit history to a separate private repository first
(simplecadapi-translators); the SDK keeps the graph schema (export_model_json) as the contract for
out-of-tree consumers. The *_translation_output tests (tools/research translators of other
libraries) are unrelated and stay.

EVIDENCE
No import of simplecadapi.translator is left in src, test, tests, tools, .github or pyproject.toml.
The full suite on this tree: 2693 passed, 68 skipped, 0 failed.

NOT DONE
Examples, skill documentation, the generated API pages and the README follow in the next commits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DECISION
Record the removal in CHANGELOG.md (Unreleased, Removed): what is gone (the package, the functions,
the classes, the export formats and options), why, what stays (STEP, STL, OBJ and MJCF export, the
model JSON as the contract, package_units moved to simplecadapi.exporter), and that the examples and
the skill pages changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@NiJingzhe
NiJingzhe merged commit 191999c into dev Nov 26, 2026
11 checks passed
@NiJingzhe
NiJingzhe deleted the chore/remove-translators branch November 26, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant