copy_modeling_region#
- Layer.copy_modeling_region(project, copy_regions)#
Copy one or more modeling regions in a specific project.
- Parameters:
project (
str) – Name of the Sherlock project.copy_regions – Modeling regions to copy along with their corresponding “copy to” parameters. Each dictionary should contain:
- Return type:
- Returns:
- :
intStatus code of the response. 0 for success.
Examples
>>> from ansys.sherlock.core import launcher >>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua") >>> sherlock.project.import_odb_archive( >>> "ODB++ Tutorial.tgz", >>> True, >>> True, >>> True, >>> True, >>> project="Tutorial Project", >>> cca_name="Card", >>> ) >>> modeling_regions = [ >>> { >>> "cca_name": "Card", >>> "region_id": "Region001", >>> "region_id_copy": "RegionCopy001", >>> "center_x": 10.0, >>> "center_y": 20.0, >>> } >>> ] >>> result = sherlock.layer.copy_modeling_region("Tutorial Project", modeling_regions)