update_parts_locations#
- Parts.update_parts_locations(project, cca_name, part_loc)#
Update one or more part locations.
- Parameters:
project (str) – Name of the Sherlock project.
cca_name (str) – Name of the CCA.
part_loc (list) –
List defining the part locations. The list consists of these properties:
- refDesstr
Reference designator of the part.
- xstr
Value for the x coordinate.
- ystr
Value for the y coordinate.
- rotation: str
Rotation.
- location_units: str
Locations units.
- board_sidestr
Board side.
- mirroredstr
Mirrored.
- Returns:
Status code of the response. 0 for success.
- Return type:
int
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( "Test", "Card", [ ("C1", "-2.7", "-1.65", "0", "in", "TOP", "False"), ("J1", "-3.55", "-2.220446049250313E-16", "90", "in", "TOP", "False"), ] )