Parts Types#

Module containing types for the Parts Service.

Constants#

class ansys.sherlock.core.types.parts_types.AVLDescription#

Constants for AVLDescription in the Update Parts List from AVL request.

ASSIGN_APPROVED_DESCRIPTION = 0#

AssignApprovedDescription

DO_NOT_CHANGE_DESCRIPTION = 1#

DoNotChangeDescription

class ansys.sherlock.core.types.parts_types.AVLPartNum#

Constants for AVLPartNum in the Update Parts List from AVL request.

ASSIGN_INTERNAL_PART_NUM = 0#

AssignInternalPartNum

ASSIGN_VENDOR_AND_PART_NUM = 1#

AssignVendorAndPartNum

DO_NOT_CHANGE_VENDOR_OR_PART_NUM = 2#

DoNotChangeVendorOrPartNum

class ansys.sherlock.core.types.parts_types.PartsListSearchDuplicationMode#

Constants for Duplication Mode in Update Parts List and Update Parts from AVL request.

ERROR = 1#

Error

FIRST = 0#

First

IGNORE = 2#

Ignore

class ansys.sherlock.core.types.parts_types.PartsListSearchMatchingMode#

DEPRECATED. Constants for Matching Mode in Update Parts List & Update Parts from AVL.

BOTH = 0#

Both

PART = 1#

Part

Classes#

class ansys.sherlock.core.types.parts_types.PartLocation(location)#

Part Location property values.

board_side#

board side - "TOP" or "BOTTOM"

location_units#

units for location coordinates

mirrored#

mirrored - True or False

ref_des#

reference designator

rotation(in degrees)#

rotation (in degrees)

x#

x coordinate

y#

y coordinate

class ansys.sherlock.core.types.parts_types.GetPartsListPropertiesRequest(**data)#

Request for getting properties of parts in the parts list of a CCA.

cca_name: str#

Name of the CCA with the parts.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

project: str#

Name of the Sherlock project.

reference_designators: Optional[List[str]]#

Reference designators of the parts to retrieve properties for. Use None to get all parts.

classmethod str_validation(value, info)#

Validate string fields listed.