Skip to main content

translate_model_json_to_solidworks_script

Kind: Function
Domain: Translators
Canonical import: from cadflow.translators.solidworks_translator import translate_model_json_to_solidworks_script

Signature

def translate_model_json_to_solidworks_script(json_str: 'str', document_name: 'str' = 'CadFlowModel', *, output_path: 'Optional[str]' = None, visible: 'bool' = False, source_kernel_fallback: 'bool' = False) -> 'str'

Description

Translate canonical model JSON into a SolidWorks automation 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.
output_path'Optional[str]'noNoneNot explicitly described in the source docstring.
visible'bool'noFalseNot 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.solidworks_translator import translate_model_json_to_solidworks_script

See also