export_project#
- Project.export_project(project_name, export_design_files, export_result_files, export_archive_results, export_user_files, export_log_files, export_system_data, export_file_dir, export_file_name, overwrite_existing_file)#
Export a sherlock project.
Available Since: 2025R1
- Parameters:
project_name (
str) – str: Name of the project being exported.export_design_files (
bool) – bool: Determines if design files should be exported.export_result_files (
bool) – bool: Determines if all analysis module result files should be exported.export_archive_results (
bool) – bool: Determines if all archive result files should be exported.export_user_files (
bool) – bool: Determines if user properties and custom data files should be exported.export_log_files (
bool) – bool: Determines if Sherlock console and application log files should be exported.export_system_data (
bool) – bool: Determines if system technical data should be exported.export_file_dir (
str) – str: Destination of export file.export_file_name (
str) – str: Name to be given to the exported file.overwrite_existing_file (
bool) – bool: Determines if exported file will overwrite a previously existing file.
- Return type:
- Returns:
- :
intStatus code of the response. 0 for success.
Examples
>>> from ansys.sherlock.core import launcher >>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua") >>> sherlock.project.export_project("Tutorial Project", True, True, True, True, True, True, "C:/Path/To/Exported/Project", "Exported_Project", True)