    

 ## On this page

  

 

 # get\_volumes\_of\_zone\_name\_pattern

 Last update: 29.04.2026 

<a id="ansys.meshing.prime.Part.get_volumes_of_zone_name_pattern"></a>

#### Part.get\_volumes\_of\_zone\_name\_pattern(zone\_name\_pattern, name\_pattern\_params)

Get volume ids of zones with name matching the given name pattern.

**Parameters:**

**zone\_name\_pattern**

Name pattern to be matched with zone name.

**name\_pattern\_params**

Name pattern parameters used to match zone name pattern.

**Returns:**

`Iterable`\[[`int`](https://docs.python.org/3.11/library/functions.html#int)\] Return volume ids of zones with name matching the name pattern. Returns an empty list for a topology part.

**Return type:**

[`Iterable`](https://docs.python.org/3.11/library/typing.html#typing.Iterable)\[[`int`](https://docs.python.org/3.11/library/functions.html#int)\]

### Examples

```pycon
>>> name_pattern_params = prime.NamePatternParams(model = model)
>>> volumes = part.get_volumes_of_zone_name_pattern("body*", name_pattern_params)

```