Fusion360ScriptTranslator
Kind: Class
Domain: Translators
Canonical import: from cadflow.translators.fusion360_translator import Fusion360ScriptTranslator
Signature
class Fusion360ScriptTranslator(document_name: 'str' = 'CadFlowModel', result_node_ids: 'Optional[Sequence[str]]' = None, selection_mode: 'str' = 'gsm', source_kernel_fallback: 'bool' = False) -> 'None'
Description
Compile a CadFlow model payload into a Fusion 360 Python script.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
document_name | 'str' | no | 'CadFlowModel' | Not explicitly described in the source docstring. |
result_node_ids | 'Optional[Sequence[str]]' | no | None | Not explicitly described in the source docstring. |
selection_mode | 'str' | no | 'gsm' | Not explicitly described in the source docstring. |
source_kernel_fallback | 'bool' | no | False | Not explicitly described in the source docstring. |
Returns
Type: 'None'
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.
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
translate_model_json_to_script | method | (self, json_str: 'str') -> 'str' | See the member signature. |
translate_model_payload_to_script | method | (self, payload: 'Dict[str, Any]', *, graph: 'Optional[OperationGraph]' = None) -> 'str' | See the member signature. |
Behavior and constraints
- The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.
Import check
from cadflow.translators.fusion360_translator import Fusion360ScriptTranslator