update_pad_properties#

Parts.update_pad_properties(request: UpdatePadPropertiesRequest) list[SherlockPartsService_pb2.UpdatePadPropertiesResponse]#

Update pad properties for one or more parts in a parts list.

Parameters:

request (UpdatePadPropertiesRequest) – Contains all the information needed to update the pad properties for one or more parts in a project’s CCA.

Returns:

Status of the pad properties update and any error messages.

Return type:

list[SherlockPartsService_pb2.UpdatePadPropertiesResponse]

Examples

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> from ansys.sherlock.core.types.parts_types import (
    UpdatePadPropertiesRequest,
)
>>> sherlock = launch_sherlock()
>>> sherlock.project.import_project_zip_archive(
    project="Assembly Tutorial",
    category="category",
    archive_file=\
        "C:\\Program Files\\ANSYS Inc\\v252\\sherlock\\tutorial\\Assembly Tutorial.zip",
)
>>> request = UpdatePadPropertiesRequest(
    project="Assembly Tutorial",
    cca_name="Main Board",
    reference_designators=["U1", "R2", "C3"]
)
>>> response = sherlock.parts.update_pad_properties(request)
>>> for res in response:
        print(f"Return code: value={res.returnCode.value}, message={res.returnCode.message},
        reference_designators={res.reference_designators}")