Import CAD projects and cad-router v1

This commit is contained in:
Jerry
2026-07-22 19:38:36 +08:00
parent e4e0199bd5
commit af9f630c11
2253 changed files with 1994207 additions and 0 deletions
@@ -0,0 +1,23 @@
# translate_model_json_to_freecad_script
## API Definition
```python
def translate_model_json_to_freecad_script(json_str: str, document_name: str = 'SimpleCADModel') -> str
```
*Source: translator/freecad_translator/api.py*
## Import Surface
- translator backend: `from simplecadapi.translator.freecad_translator import translate_model_json_to_freecad_script`
## Description
Translate exported model JSON into a FreeCAD Python script.
Part/Assembly product nodes are emitted as editable FreeCAD document
structure: parts use `App::Part`, assemblies use native
`Assembly::AssemblyObject`, part components use `App::Link`, and
subassembly components use `Assembly::AssemblyLink` when the Assembly
workbench module is available.