generate_project_report#

Project.generate_project_report(project, author, company, report_file)#

Generate a project report.

Available Since: 2021R1

Parameters:
  • project (str) – str: Name of the Sherlock project.

  • author (str) – str: Name of the author who is generating the report.

  • company (str) – str: Name of the author’s company.

  • report_file (str) – str: Full path to where to create the report.

Return type:

int

Returns:

:
int

Status 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.import_odb_archive(
>>>     "ODB++ Tutorial.tgz",
>>>     True,
>>>     True,
>>>     True,
>>>     True,
>>>     project="Tutorial",
>>>     cca_name="Card"
>>> )
>>> sherlock.project.generate_project_report(
>>>     "Tutorial",
>>>     "John Doe",
>>>     "Example",
>>>     "Project Report.pdf"
>>> )