copy_potting_region#

Layer.copy_potting_region(request)#

Copy one or more potting regions in a specific project.

Available Since: 2025R1

Parameters:

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

Return type:

list[ReturnCode]

Returns:

:
list[SherlockCommonService_pb2.ReturnCode]

Return codes for each request.

Examples

>>> from ansys.sherlock.core.types.layer_types import CopyPottingRegionRequest
>>> from ansys.sherlock.core.types.layer_types import PottingRegionCopyData
>>> from ansys.sherlock.core import launcher
>>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua")
>>>
>>> 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)