    

 ## On this page

  

 

 # get\_zone\_by\_name

 Last update: 17.07.2025 

<a id="ansys.meshing.prime.Model.get_zone_by_name"></a>

#### Model.get\_zone\_by\_name(zone\_name)

Gets the zone with the provided name.

- **Parameters:**
    
    **zone\_name**: Name of the zone.
- **Returns:**
    
    [`int`](https://docs.python.org/3.11/library/functions.html#int): Returns id of the zone.
- **Return type:**
    
    [`int`](https://docs.python.org/3.11/library/functions.html#int)

### Examples

```pycon
&gt;&gt;&gt; client = prime.launch_prime()
&gt;&gt;&gt; model = client.model
&gt;&gt;&gt; zone_id = model.get_zone_by_name("inlet")

```