delete_modeling_region#
- Layer.delete_modeling_region(project, delete_regions)#
Delete one or more modeling regions for a specific project.
- Parameters:
- project: str
Name of the Sherlock project.
- delete_regions: list[dict[str, str]]
Modeling regions to delete. Each dictionary should contain: - “cca_name”: str, Name of the CCA. - “region_id”: str, Unique region ID of the modeling region to delete.
- Returns:
- :
int
Status code of the response. 0 for success.
- Return type:
Examples
>>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> sherlock.project.import_odb_archive( >>> "ODB++ Tutorial.tgz", >>> True, >>> True, >>> True, >>> True, >>> project="Test", >>> cca_name="Card", >>> ) >>> modeling_regions = [{"cca_name": "Card", "region_id": "12345"}] >>> sherlock.layer.delete_modeling_region("Test", modeling_regions)