update_parts_locations_by_file#

Parts.update_parts_locations_by_file(project, cca_name, file_path, numeric_format='')#

Update one or more part locations using a CSV file.

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

  • cca_name (str) – Name of the CCA.

  • file_path (str) – Full path to the file with the components and location properties.

  • numeric_format (str, optional) – Numeric format for the file. The default is "", in which case “English (United States)” is used.

Examples

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> sherlock.project.import_odb_archive(
    "ODB++ Tutorial.tgz",
    True,
    True,
    True,
    True,
    project="Test",
    cca_name="Card",
)
>>> sherlock.parts.update_parts_locations_by_file(
    "Test",
    "Card",
    "Parts Locations.csv",
)