Skip to main content

Prime Mesh Python client library 2025 R2 SP02

get_part

Last update: 16.10.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