Repository navigation
Remove the FreeCAD, Fusion 360 and SolidWorks translators from the SDK - #100
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
simplecadapi.translator, its tests, and the lazytranslatorsubmodule.sca exportkeeps STEP, STL, OBJ and MJCF; thefcstd,freecad-script,fusion360-scriptandsolidworks-scriptformats and
--freecad-cmd/--document-nameare gone.package_units(used by the STEP/OBJ/STL/MJCF exporters) moves tosimplecadapi.exporter.package_units.export_model_json) and the operation graph stay the contract for any out-of-tree consumer.export-and-translationbecomeexport; the generated API pages ofthe removed names are deleted.
*_translation_outputtests (translators of other libraries under tools/research) are unrelated and stay.Five commits, one decision each:
package_unitsmove, examples, docs, the removal itself, CHANGELOG.Evidence
simplecadapi.translatoris left in src, test, tests, tools, .github or pyproject.toml.tests pass.
Not done
simplecadapi.translatormust move to the new package.🤖 Generated with Claude Code