Synergy#

Usage:

Synergy Class API Wrapper

class Synergy[source]#

Bases: object

Wrapper for Synergy class of Moldflow Synergy.

property boundary_conditions: BoundaryConditions#

Get the BoundaryConditions object.

property build: str#

Get the build version of the Synergy application.

Getter:

Get the build version.

Type:

str

property build_number: str#

Get the build number of the Synergy application.

Getter:

Get the build number.

Type:

str

property cad_manager: CADManager#

Get the CADManager object.

property circuit_generator: CircuitGenerator#

Get the CircuitGenerator object.

create_double_array()[source]#

Create a DoubleArray object.

Returns:

The DoubleArray object.

Return type:

DoubleArray

create_integer_array()[source]#

Create a IntegerArray object.

Returns:

The IntegerArray object.

Return type:

IntegerArray

create_string_array()[source]#

Create a StringArray instance.

Returns:

The StringArray object.

Return type:

StringArray

create_vector()[source]#

Create a Vector object.

Returns:

The Vector object.

Return type:

Vector

create_vector_array()[source]#

Create a VectorArray object.

Returns:

The VectorArray object.

Return type:

VectorArray

property data_transform: DataTransform#

Get the DataTransform object.

property diagnosis_manager: DiagnosisManager#

Get the DiagnosisManager object.

property edition: str#

Get the edition of the Synergy application.

Getter:

Get the edition.

Type:

str

export_lmv_shared_views(collaboration_view_name)[source]#

Publishes active result plot to viewer.autodesk.com

Parameters:

collaboration_view_name (str) – The shared view name.

Return type:

str

Returns:

The TinyURL if successful, otherwise an empty string.

property folder_manager: FolderManager#

Get the FolderManager object.

get_material_selector_with_index(index)[source]#

Get the MaterialSelector object with the given index.

Parameters:

index (int) – The index of the material selector.

Return type:

MaterialSelector

Returns:

The MaterialSelector object.

import_file(file, import_options=None, show_logs=True, show_prompts=False)[source]#

Import a file.

Parameters:
  • file (str) – The file to import.

  • import_options (ImportOptions) – The import options.

  • show_logs (bool) – Whether to show logs.

  • show_prompts (bool) – Whether to show prompts.

Return type:

bool

Returns:

True if the file is imported successfully.

property import_options: ImportOptions#

Get the ImportOptions object.

property layer_manager: LayerManager#

Get the LayerManager object.

property material_finder: MaterialFinder#

Get the MaterialFinder object.

property material_selector: MaterialSelector#

Get the MaterialSelector object.

property mesh_editor: MeshEditor#

Get the MeshEditor object.

property mesh_generator: MeshGenerator#

Get the MeshGenerator object.

property model_duplicator: ModelDuplicator#

Get the ModelDuplicator object.

property modeler: Modeler#

Get the Modeler object.

property mold_surface_generator: MoldSurfaceGenerator#

Get the MoldSurfaceGenerator object.

new_project(name, path)[source]#

Create a new project.

Parameters:
  • name (str) – The name of the project.

  • path (str) – The location of the project.

Return type:

bool

Returns:

True if the project is created successfully.

open_archive(path, target)[source]#

Open an archive file.

Parameters:
  • path (str) – The location of the archive file.

  • target (str) – The target project to open where the archive will be extracted.

Return type:

bool

Returns:

True if successful.

open_project(path)[source]#

Open a project.

Parameters:

path (str) – The location of the project.

Return type:

bool

Returns:

True if the project is opened successfully.

open_recent_project(index)[source]#

Open a recent project.

Parameters:

index (int) – The index of the recent project. [0 to 3]

Return type:

bool

Returns:

True if the project is opened successfully.

property plot_manager: PlotManager#

Get the PlotManager object.

property predicate_manager: PredicateManager#

Get the PredicateManager object.

property project: Project#

Get the Project object.

property property_editor: PropertyEditor#

Get the PropertyEditor object.

quit(prompt_save)[source]#

Quit the Synergy application.

Parameters:

prompt_save (bool) – To prompt to save the changes or not.

Return type:

None

property runner_generator: RunnerGenerator#

Get the RunnerGenerator object.

set_application_window_pos(x, y, size_x, size_y)[source]#

Set the position and size of the application window.

Parameters:
  • x (int) – The x-coordinate of the top-left corner of the window.

  • y (int) – The y-coordinate of the top-left corner of the window.

  • size_x (int) – The width of the window.

  • size_y (int) – The height of the window.

Return type:

bool

Returns:

True if successful, otherwise False.

property study_doc: StudyDoc#

Get the StudyDoc object.

property system_message: SystemMessage#

Get the SystemMessage object.

property unit_conversion: UnitConversion#

Get the UnitConversion object.

property units: str#

Get the system units.

Getter:

Get the system units.

Setter:

Set the system units.

Type:

str

property version: str#

Get the version of the Synergy application.

Getter:

Get the version.

Type:

str

property viewer: Viewer#

Get the Viewer object.