Skip to main content

translate_model_json_to_fusion360_script

Kind: Function
Domain: Translators
Canonical import: from cadflow.translators.fusion360_translator import translate_model_json_to_fusion360_script

Signature

def translate_model_json_to_fusion360_script(json_str: 'str', document_name: 'str' = 'CadFlowModel', result_node_ids: 'Optional[Sequence[str]]' = None, *, selection_mode: 'str' = 'gsm', source_kernel_fallback: 'bool' = False) -> 'str'

Description

Translate canonical model JSON into a Fusion 360 Python script.

Parameters

NameTypeRequiredDefaultSource description
json_str'str'yes-Not explicitly described in the source docstring.
document_name'str'no'CadFlowModel'Not explicitly described in the source docstring.
result_node_ids'Optional[Sequence[str]]'noNoneNot explicitly described in the source docstring.
selection_mode'str'no'gsm'Not explicitly described in the source docstring.
source_kernel_fallback'bool'noFalseNot explicitly described in the source docstring.

Returns

Type: 'str'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • Serialized data is intended to remain JSON-safe and should be schema-validated when crossing trust boundaries.

Import check

from cadflow.translators.fusion360_translator import translate_model_json_to_fusion360_script

See also