get_objects_w_string#

Modeler3D.get_objects_w_string(string_name: str, case_sensitive: bool = True) → list#

Retrieve all objects with a given string in their names.

Parameters:
string_namestr

String to search object names for.

case_sensitivebool, optional

Whether the string is case-sensitive. The default is True.

Returns:
list

List of object names with the given string.

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> app.modeler.get_objects_w_string(string_name=1)