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.
Available Since: 2023R1
- Parameters:
project (
str) – str: Name of the Sherlock project.cca_name (
str) – str: Name of the CCA.file_path (
str) – str: Full path to the file with the components and location properties.numeric_format (
str) – str, optional: Numeric format for the file, which indicates whether commas or points are used as decimal markers. The default is"", in which case"English (United States)"is the numeric format. This indicates that points are used as decimal markers.
- 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.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" >>> )