export_all_test_points#

Layer.export_all_test_points(project, cca_name, export_file, length_units='DEFAULT', displacement_units='DEFAULT', force_units='DEFAULT')#

Export the test point properties for a CCA.

Available Since: 2023R1

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 test points list to.

  • length_units (str) – str, optional: Length units to use when exporting the test points. The default is DEFAULT.

  • displacement_units (str) – str, optional: Displacement units to use when exporting the test points. The default is DEFAULT.

  • force_units (str) – str, optional: Force units to use when exporting the test points. The default is DEFAULT.

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 Project",
>>>     cca_name="Card",
>>> )
>>> sherlock.layer.export_all_test_points(
>>>     "Tutorial Project",
>>>     "Card",
>>>     "TestPointsExport.csv",
>>>     "DEFAULT",
>>>     "DEFAULT",
>>>     "DEFAULT"
>>> )