    

 ## On this page

  

 

 # get\_volumes

 Last update: 20.02.2026 

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

#### Part.get\_volumes()

Get all the volumes of the part.

- **Returns:**
    
    `Iterable`\[[`int`](https://docs.python.org/3.11/library/functions.html#int)\] : Return ids of volumes.
- **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
&gt;&gt;&gt; volumes = part.get_volumes()

```