Skip to main content

Prime Mesh Python client library 2024 R2

ansys.meshing.prime.Model

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