set_object_model_state#

Modeler3D.set_object_model_state(assignment: list, model: bool = True) bool#

Set a list of objects to either models or non-models.

Parameters:
assignmentlist

List of objects IDs or names.

modelbool, optional

Whether to set the objects as models. The default is True. If False, the objects are set as non-models.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.ChangeProperty

Examples

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