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
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, 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.
- Returns:
- :
intStatus code of the response. 0 for success.
- Return type:
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" )