    

 ## On this page

  

 

 # get\_topo\_volumes\_of\_label\_name\_pattern

 Last update: 20.02.2026 

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

#### Part.get\_topo\_volumes\_of\_label\_name\_pattern(label\_name\_pattern, name\_pattern\_params)

Gets the topovolumes of labels of the given label name expression.

- **Parameters:**
    
    **label\_name\_pattern**: Name pattern to be matched with topovolume name
    
    **name\_pattern\_params**: Name pattern parameters used to match topovolume name pattern.
- **Returns:**
    
    `Iterable`\[[`int`](https://docs.python.org/3.11/library/functions.html#int)\] : Returns the ids of the topovolumes.
- **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)\]

### Notes

**This is a beta API**. **The behavior and implementation may change in future**.

### Examples

```pycon
&gt;&gt;&gt; topo_volumes = prime.get_topo_volumes_of_label_name_pattern(
&gt;&gt;&gt;                      label_name_pattern = "solid*",
&gt;&gt;&gt;                      params = prime.NamePatternParams(model=model))

```