update_parts_list#

Parts.update_parts_list(project, cca_name, part_library, matching, duplication)#

Update a parts list based on matching and duplication preferences.

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

  • cca_name (str) – Name of the CCA.

  • part_library (str) – Name of the parts library.

  • matching (str) – Matching mode for updates. Options are "Both" and "Part".

  • duplication (str) – How to handle duplications during the update. Options are "First", "Error", and "Ignore".

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_list(
    "Test",
    "Card",
    "Sherlock Part Library",
    "Both",
    "Error",
)