update_pad_properties#
- Parts.update_pad_properties(request)#
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:
- :
list[SherlockPartsService_pb2.UpdatePadPropertiesResponse]Status of the pad properties update and any error messages.
- Return type:
list[UpdatePadPropertiesResponse]
Examples
>>> from ansys.sherlock.core.types.parts_types import ( >>> UpdatePadPropertiesRequest, >>> ) >>> from ansys.sherlock.core import launcher >>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua") >>> 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}")