    

 ## On this page

  

 

 # get\_components\_by\_path\_expression

 Last update: 16.10.2025 

<a id="ansys.meshing.prime.Part.get_components_by_path_expression"></a>

#### Part.get\_components\_by\_path\_expression(path\_expression)

Gets component names with the provided path expression.

- **Parameters:**
    
    **path\_expression**: Path expression to determine component names that should be returned.
- **Returns:**
    
    `List`\[[`str`](https://docs.python.org/3.11/library/stdtypes.html#str)\] : Returns a list of component names.
- **Return type:**
    
    [`List`](https://docs.python.org/3.11/library/typing.html#typing.List)\[[`str`](https://docs.python.org/3.11/library/stdtypes.html#str)\]

### Notes

**This is a beta API**. **The behavior and implementation may change in future**.

### Examples

```pycon
>>> results = part.get_components_by_path_expression(path_expression)

```