get_parts_list_properties#
- Parts.get_parts_list_properties(request: GetPartsListPropertiesRequest) list[SherlockPartsService_pb2.GetPartsListPropertiesResponse] #
Return the properties for one or more parts in the parts list for the CCA.
Available Since: 2025R2
- Parameters:
request (GetPartsListPropertiesRequest) – Contains the information needed to retrieve the properties of parts in the parts list.
- Returns:
Properties for each part that corresponds to the reference designators.
- Return type:
list[SherlockPartsService_pb2.GetPartsListPropertiesResponse]
Examples
>>> from ansys.sherlock.core.types.parts_types import (GetPartsListPropertiesRequest) >>> 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", >>> ) >>> part_properties = sherlock.parts.get_parts_list_properties( >>> GetPartsListPropertiesRequest( >>> project="Test", >>> cca_name="Card", >>> reference_designators=["C1","U9"] >>> ) >>> ) >>> print(f"{part_properties}")