delete_modeling_region#

Layer.delete_modeling_region(project, delete_regions)#

Delete one or more modeling regions for a specific project.

Parameters:
  • project (str) – str: Name of the Sherlock project.

  • delete_regions (list[dict[str, str]]) – 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.

Return type:

int

Returns:

:
int

Status 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="Test",
>>>     cca_name="Card",
>>> )
>>> modeling_regions = [{"cca_name": "Card", "region_id": "12345"}]
>>> sherlock.layer.delete_modeling_region("Test", modeling_regions)