copy_potting_region#

Layer.copy_potting_region(request: CopyPottingRegionRequest) list[SherlockCommonService_pb2.ReturnCode]#

Copy one or more potting regions in a specific project.

Available Since: 2025R1

Parameters:

request (CopyPottingRegionRequest) – Contains all the information needed to copy one or more potting regions per project.

Returns:

Return codes for each request.

Return type:

list[SherlockCommonService_pb2.ReturnCode]

Examples

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> from ansys.sherlock.core.types.layer_types import CopyPottingRegionRequest
>>> from ansys.sherlock.core.types.layer_types import PottingRegionCopyData
>>> sherlock = launch_sherlock()
>>>
>>> copy_request_example = CopyPottingRegionRequest(
    project=project,
    potting_region_copy_data=[
        PottingRegionCopyData(
            cca_name=cca_name,
            potting_id=potting_id,
            copy_potting_id=new_id,
            center_x=center_x,
            center_y=center_y
        ),
        PottingRegionCopyData(
            cca_name=cca_name,
            potting_id=new_id,
            copy_potting_id=new_id+"1",
            center_x=center_x,
            center_y=center_y
        )
    ]
)
>>> responses_example = sherlock.layer.copy_potting_region(copy_request_example)