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 ((str, str, str, str, str, str, str) list, required) – (refDes, x, y, rotation, location_units, board_side, mirrored) Definitions of part locations.
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"), ] )