get_part_by_name#

Model.get_part_by_name(name)#

Get the part by name.

Parameters:
namestr

Name of the part.

Returns:
:
Part

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

Return type:

Part

Examples

>>> from ansys.meshing.prime import Model
>>> model = client.model
>>> part = model.get_part_by_name("part.1")

Examples using Model.get_part_by_name#

Convert data when importing and exporting mesh and CAD formats

Convert data when importing and exporting mesh and CAD formats

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mixing elbow for a flow analysis

Mesh a mixing elbow for a flow analysis

Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic PCB geometry with multiple hexa layers

Mesh a generic PCB geometry with multiple hexa layers

Create a contact patch for wrapping between a wheel and ground interface

Create a contact patch for wrapping between a wheel and ground interface