Skip to main content

Prime Mesh Python client library 2026 R1

get_part

Last update: 02.04.2026

Model.get_part(id)

Get the part by ID.

Parameters:

id

ID of the part.

Returns:

Part

Part or None if the given part ID doesn’t exist.

Return type:

Part

Examples

>>> from ansys.meshing.prime import Model
>>> model = client.model
>>> part = model.get_part(2)

Connect with Ansys