> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# get_part

#### Model.get\_part(id)

Get the part by ID.

* **Parameters:**

  **id**
  : ID of the part.

* **Returns:**
  :

  [`Part`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1-sp01/api/_autosummary/ansys.meshing.prime.Part)
  : Part or `None` if the given part ID doesn’t exist.

* **Return type:**

  [`Part`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1-sp01/api/_autosummary/ansys.meshing.prime.Part)

### Examples

```python theme={null}
>>> from ansys.meshing.prime import Model
>>> model = client.model
>>> part = model.get_part(2)
```
