Files
cadSet/SimpleCADAPI/docs/api/translate_model_json_to_freecad_script.md
T
2026-07-22 19:38:36 +08:00

734 B

translate_model_json_to_freecad_script

API Definition

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.