delete_modeling_region#

Layer.delete_modeling_region(project: str, delete_regions: List[Dict[str, str]])#

Delete one or more modeling regions for a specific project.

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

  • delete_regions (list of dict) – List of 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:

Status code of the response. 0 for success.

Return type:

int

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