Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ assignees: ""

## Area

<!-- Examples: modeling API, geometry/topology, STEP/BREP inspection, serialization, FreeCAD/Fusion 360/SolidWorks translation, documentation -->
<!-- Examples: modeling API, geometry/topology, STEP/BREP inspection, serialization, export, documentation -->

## Reproduction

Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ user-facing notes live in [`docs/updates/`](docs/updates/) (English and

## Unreleased

### Removed (breaking)
- The FreeCAD, Fusion 360 and SolidWorks translators are no longer part of the SDK, and the SDK no longer maintains
them. Gone: the package `simplecadapi.translator` (and `simplecadapi.translator` as a lazy submodule),
`translate_model_json_to_*`, `translate_product_package_to_*`, `export_model_json_to_solidworks_step`, the
`FreeCADTranslator`, `Fusion360Translator` and `SolidWorksTranslator` classes, and the `fcstd`, `freecad-script`,
`fusion360-script` and `solidworks-script` formats and the `--freecad-cmd` and `--document-name` options of
`sca export`. They were used by few people and follow the operation-graph format closely, which may change a lot; the
translators now live in a separate private repository.
- Kept: `sca export` writes STEP, STL, OBJ and MJCF; the model JSON (`export_model_json`) and the operation graph stay the
contract for any out-of-tree consumer. `package_units` (the validated product-package units the exporters use) moves
to `simplecadapi.exporter.package_units`.
- The examples lose their FCStd export steps (`export_fcstd.py` and the FCStd parts of the `export.py` scripts), and the
skill pages `export-and-translation` are now `export`.

### Added
- `fillet_rsolid(..., strategy_auto_y_patch=True)`: the Y transition. Where a concave and a convex selected edge meet
tangentially or nearly so (a post flush with a plate side, a wall a few degrees off it), two rolling-ball fillets cannot
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The skill is how an agent learns the SDK. It is a router and a library of small
| Rebuild from a mesh, point cloud or photos | scan reconstruction |
| Rebuild from a vector-PDF drawing | drawing reconstruction |
| Produce a GB engineering drawing (DXF) | engineering drawing from validated geometry |
| Hand the model to someone else | export and translation: STEP AP242, STL, FreeCAD, MJCF |
| Hand the model to someone else | export: STEP AP242, STL, OBJ, MJCF |

**How it is organized**

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Skill 是 agent 学会使用 SDK 的方式。它是一个路由页加一批小
| 从网格、点云或照片重建 | 扫描重建 |
| 从矢量 PDF 图纸重建 | 图纸重建 |
| 出国标工程图(DXF) | 由已验证的几何生成工程图 |
| 把模型交给别人 | 导出与转译:STEP AP242、STL、FreeCAD、MJCF |
| 把模型交给别人 | 导出:STEP AP242、STL、OBJ、MJCF |

**怎么组织**

Expand Down
2 changes: 1 addition & 1 deletion docs/skill-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ references/workflows/
single-part-modeling.md outline, Role 5 (export), failure routes
single-part-modeling/**role-1-requirements.md, requirements-template.md, role-2-plan.md,
role-3-verifier.md, verifier-contract-patterns.md, role-4-build.md**
assembly-product-build.md step-reconstruction.md engineering-drawing.md export-and-translation.md
assembly-product-build.md step-reconstruction.md engineering-drawing.md export.md
**scan-reconstruction.md** a mesh, point cloud or images as the source
drawing-reconstruction.md outline
drawing-reconstruction/**(role / stage pages, the owner chooses the names)**
Expand Down
4 changes: 2 additions & 2 deletions docs/skill/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: simplecadapi
description: Build, assemble, inspect, reconstruct, and export parametric CAD models with the SimpleCADAPI Python SDK. Use for SimpleCAD geometry modeling, constrained sketches, parts and assemblies, standard gears and bearings, STEP/BREP inspection and reconstruction, mesh or image based reconstruction, vector-PDF drawing reconstruction, durable product packages, model JSON replay, and CAD backend translation.
description: Build, assemble, inspect, reconstruct, and export parametric CAD models with the SimpleCADAPI Python SDK. Use for SimpleCAD geometry modeling, constrained sketches, parts and assemblies, standard gears and bearings, STEP/BREP inspection and reconstruction, mesh or image based reconstruction, vector-PDF drawing reconstruction, durable product packages, model JSON replay, and export to STEP, STL, OBJ and MJCF.
license: Apache-2.0
metadata:
project: simplecadapi
Expand Down Expand Up @@ -57,7 +57,7 @@ Each row's batch is the workflow page plus its `Read now` set (the workflow page
| Rebuild a model from a mesh, point cloud or photos | `references/workflows/scan-reconstruction.md` | `references/workflows/scan-reconstruction.md` `references/domains/step-inspection.md` `references/domains/part-modeling.md` |
| Rebuild a model from a vector-PDF drawing | `references/workflows/drawing-reconstruction.md` | `references/workflows/drawing-reconstruction.md` `references/workflows/drawing-reconstruction/role-1-drawing-confirmer.md` `references/domains/drawing-inspection.md` `references/domains/requirement-refinement.md` |
| Produce a GB engineering drawing (DXF) from validated geometry | `references/workflows/engineering-drawing.md` | `references/workflows/engineering-drawing.md` `references/domains/engineering-drawing.md` `references/domains/requirement-refinement.md` |
| Export or translate a validated package | `references/workflows/export-and-translation.md` | `references/workflows/export-and-translation.md` `references/domains/export-and-translation.md` |
| Export a validated package | `references/workflows/export.md` | `references/workflows/export.md` `references/domains/export.md` |

Routes without a workflow (no lifecycle, read the page and answer):

Expand Down
6 changes: 3 additions & 3 deletions docs/skill/references/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Load top-down and only what the task triggers; read each batch in one parallel r
| `workflows/scan-reconstruction.md` | rebuild from a mesh, point cloud or photos: what the SDK supports and what it does not |
| `workflows/drawing-reconstruction.md` | editable rebuild from vector-PDF dimensions (outline; stage pages in `workflows/drawing-reconstruction/`) |
| `workflows/engineering-drawing.md` | GB engineering drawing (DXF) from validated geometry |
| `workflows/export-and-translation.md` | downstream formats from a validated package |
| `workflows/export.md` | downstream formats from a validated package |

Stage and role pages of the long workflows:

Expand Down Expand Up @@ -60,7 +60,7 @@ Stage and role pages of the long workflows:
| `domains/editor-collaboration.md` | a person has the code-first editor open (`sca edit`) and you edit the same notebooks (a selection, a cell reference or a tuned value arrives). |
| `domains/editor-gui-features.md` | a person made features with the editor's buttons (`# gui:` cells, `scad.ref` selections, workplanes, canvas sketches), or you run the same operations with `sca feature` / `sca sketch`. |
| `domains/engineering-drawing.md` | a validated part or product needs a GB-standard drawing sheet (DXF + PNG). |
| `domains/export-and-translation.md` | a validated `.scadpkg` must be delivered as STEP, STL, OBJ, MJCF or an editable external CAD document. |
| `domains/export.md` | a validated `.scadpkg` must be delivered as STEP, STL, OBJ or MJCF. |
| `domains/part-modeling.md` | the deliverable is one physical single-solid part, or an existing part source needs a geometry edit (Role 4 of `workflows/single-part-modeling.md`). |
| `domains/requirement-refinement.md` | every task starts here: any modeling, assembly, reconstruction, or export request is refined into a brief first, and whenever inputs conflict, are ambiguous, or mix modalities. |
| `domains/sketch-and-features.md` | the part's controlling dimensions are geometric constraints, or an editable, constraint-driven profile is requested (sketch tier profiles and paths). |
Expand Down Expand Up @@ -109,4 +109,4 @@ Stage and role pages of the long workflows:
- Every workflow has `Read now`, `Read when` and `Unattended mode`, with one unattended row for every gate that asks a person.
- Every path written in a page must exist in the packaged skill.
- Reading an API page is an action with an output: note the signature, return type and documented failures before the
first call. Non-SDK dependencies (Gmsh, CalculiX, VTK, FreeCAD scripting) are not covered by SDK pages.
first call. Non-SDK dependencies (Gmsh, CalculiX, VTK) are not covered by SDK pages.
2 changes: 1 addition & 1 deletion docs/skill/references/discipline/core-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ consumes them. Cell boundaries, `_private` names and `var()` follow `discipline/
and the mandatory header `# ---- feature: <slug> (<role>) ----` follow `discipline/feature-tree-convention.md`. Read both
before writing any cell. The one exception is a task that itself asks for a single script
(`python model.py --output part.step`, an unattended batch): that is a plain script, see "One-shot script" in
`domains/export-and-translation.md`; the notebook rules do not apply to it.
`domains/export.md`; the notebook rules do not apply to it.

**R4. Sketch first.** 2D profiles and planar paths go through the sketch API; primitives only when the shape is entirely
the basic form.
Expand Down
5 changes: 2 additions & 3 deletions docs/skill/references/discipline/failure-and-repair.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ Repeated non-improvement changes the feature hypothesis instead of tuning
the same parameters again. Stop only per the acceptance hierarchy — and
record the evidence for the stop.

### Export/translation failure
### Export failure

Missing external backend (FreeCAD/FreeCADCmd) → report; offer the neutral
fallback explicitly. Over-coarse tessellation → tighten deflection
Over-coarse tessellation → tighten deflection
parameters and re-export. Missing joints in MJCF → the assembly lacked
explicit constraints; fix the source, never the exported file.

Expand Down
8 changes: 4 additions & 4 deletions docs/skill/references/discipline/feature-tree-convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Part sources are block-structured feature chains: every block is one feature
in the sense of a commercial CAD feature tree (Onshape / SolidWorks /
Fusion 360), readable by humans and LLMs, and translatable by the package
translators. This convention is mandatory for every part source authored in
Fusion 360), readable by humans and LLMs, and recorded as a replayable
operation graph. This convention is mandatory for every part source authored in
any workflow.

A model is a marimo notebook (`docs/guides/notebook-runtime.md`), and each
Expand Down Expand Up @@ -99,7 +99,7 @@ wires at the point of use. Annotate `path=sketch`.
`modify` blocks select through QL selectors — predicates plus cardinality
(`.take(n).exactly(n)`) — or tags. Bare topology enumeration does not
exist (plural getters are index-only); selections that escape the graph
capture kernel artifacts and do not translate. Indexed picks are reserved
capture kernel artifacts and do not replay. Indexed picks are reserved
for intentional, named choices.

## Ordering and failure
Expand Down Expand Up @@ -152,7 +152,7 @@ the source itself:
A builder never caches; each call builds afresh. How the calling cell is cached
is in `docs/guides/notebook-composition-and-cache.md`.

**Delivered sources state the anchor explicitly.** A translator-emitted
**Delivered sources state the anchor explicitly.** A generated
or standalone `.ftc.py` passes `project_root=Path(__file__).parent`
explicitly so the anchor is legible from the source itself — even though
it matches the default, the corpus states it rather than relying on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ judgment, not a table:
## Format responsibilities

Each export target carries only its own contract
(`../domains/export-and-translation.md`):
(`../domains/export.md`):

- `.scadpkg` is the editable, replayable SimpleCAD boundary — never treat STL
or OBJ as an editable CAD source.
Expand Down
17 changes: 0 additions & 17 deletions docs/skill/references/docs/api/FreeCADTranslator.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/skill/references/docs/api/Fusion360Translator.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/skill/references/docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ This index includes generated docs for the public SimpleCAD API surface, includi
- Entries marked `submodule` are public through the listed submodule, such as `simplecadapi.ql`.
- Entries marked `inspection namespace` are available through `simplecadapi.inspect.brep` and cannot run inside `GraphSession`.
- Entries marked `drawing-inspection namespace` are available through `simplecadapi.inspect.drawing` and cannot run inside `GraphSession`.
- Entries marked `translator backend` are public only through `simplecadapi.translator.<backend>`.
- Entries marked `reverse-engineering evaluator` are available through `simplecadapi.inverse_engineer.brep`; their acceptance inputs and reports belong to the trusted harness, not participant code.

## Basic Creation
Expand Down Expand Up @@ -119,21 +118,6 @@ This index includes generated docs for the public SimpleCAD API surface, includi
- [export_product_package_to_step](export_product_package_to_step.md) *(from exporter/step.py)* `exporter namespace`
- [export_product_package_to_stl](export_product_package_to_stl.md) *(from exporter/stl.py)* `exporter namespace`

## Translator Backends

- [FreeCADTranslator](FreeCADTranslator.md) *(from translator/freecad_translator/translator.py)* `translator backend`
- [Fusion360Translator](Fusion360Translator.md) *(from translator/fusion360_translator/translator.py)* `translator backend`
- [SolidWorksTranslator](SolidWorksTranslator.md) *(from translator/solidworks_translator/translator.py)* `translator backend`
- [export_model_json_to_solidworks_step](export_model_json_to_solidworks_step.md) *(from translator/solidworks_translator/api.py)* `translator backend`
- [make_interpolated_bspline_edge](make_interpolated_bspline_edge.md) *(from translator/solidworks_translator/translator.py)* `translator backend`
- [translate_model_json_to_fcstd](translate_model_json_to_fcstd.md) *(from translator/freecad_translator/api.py)* `translator backend`
- [translate_model_json_to_freecad_script](translate_model_json_to_freecad_script.md) *(from translator/freecad_translator/api.py)* `translator backend`
- [translate_model_json_to_solidworks_script](translate_model_json_to_solidworks_script.md) *(from translator/solidworks_translator/api.py)* `translator backend`
- [translate_product_package_to_fcstd](translate_product_package_to_fcstd.md) *(from translator/freecad_translator/api.py)* `translator backend`
- [translate_product_package_to_freecad_script](translate_product_package_to_freecad_script.md) *(from translator/freecad_translator/api.py)* `translator backend`
- [translate_product_package_to_fusion360_script](translate_product_package_to_fusion360_script.md) *(from translator/fusion360_translator/api.py)* `translator backend`
- [translate_product_package_to_solidworks_script](translate_product_package_to_solidworks_script.md) *(from translator/solidworks_translator/api.py)* `translator backend`

## Math Helpers

- [BSplineFitResult](BSplineFitResult.md) *(from math.py)* `top-level`
Expand Down
17 changes: 0 additions & 17 deletions docs/skill/references/docs/api/SolidWorksTranslator.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/skill/references/docs/api/capture.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def capture(result: Any, path: str | Path, /, *, include_scene: bool = True) ->
Capture a durable product and write its canonical `.scadpkg`.

``include_scene=False`` skips the optional Scene projection (tessellated
geometry/entity assets). STEP, MJCF, and FreeCAD exports read meshes and
geometry/entity assets). STEP and MJCF exports read meshes and
feature graphs from the definition closure, so they do not need it.

This file was deleted.

17 changes: 0 additions & 17 deletions docs/skill/references/docs/api/make_interpolated_bspline_edge.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/skill/references/docs/api/translate_model_json_to_fcstd.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading