get_part#

Model.get_part(id)#

Get the part by ID.

Parameters:
idint

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)