does_object_exists#

Modeler3D.does_object_exists(assignment: int | str | Object3d) bool#

Check to see if an object exists.

Parameters:
assignmentstr, int or ansys.aedt.core.modeler.cad.object_3d.Object3d

Object name or object ID or Object3d to check.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core.modeler.cad.primitives import GeometryModeler
>>> obj = GeometryModeler()
>>> obj.does_object_exists(assignment="Box1")