Skip to main content

SolidWorksTranslator

Kind: Class
Domain: Translators
Canonical import: from cadflow.translators.solidworks_translator import SolidWorksTranslator

Signature

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

Description

Translate canonical model JSON into a SolidWorks COM Python script.

Parameters

NameTypeRequiredDefaultSource description
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: '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

MemberKindSignatureDescription
capabilitiesproperty-See the member signature.
translate_model_json_to_scriptmethod(self, json_str: 'str') -> 'str'See the member signature.
translate_model_payloadmethod(self, payload: 'Dict[str, Any]', *, graph: 'Optional[OperationGraph]' = None) -> 'TranslationArtifact'Translate an already-imported canonical model payload.
translate_model_payload_to_scriptmethod(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.solidworks_translator import SolidWorksTranslator

See also