Skip to main content

Prime Mesh Python client library 2025 R1

get_part

Last update: 17.07.2025

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