export_parts_list#

Parts.export_parts_list(project, cca_name, export_file)#

Export a parts list for a CCA.

Available Since: 2021R2

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

  • cca_name (str) – str: Name of the CCA.

  • export_file (str) – str: Full path for the CSV file to export the parts list to.

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="Test",
>>>     cca_name="Card",
>>> )
>>> sherlock.parts.export_parts_list(
>>>     "Test",
>>>     "Card",
>>>     "Parts List.csv"
>>> )