generate_object_history#

Modeler2D.generate_object_history(assignment, non_model=False)#

Generate history for the object.

Parameters:
assignmentstr

Name of the history object.

non_modelbool, optional

Convert new parts to non-model objects. The default is False.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.GenerateHistory

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> cylinder1 = hfss.modeler.create_cylinder(orientation="X", origin=[5, 0, 0], radius=1, height=20)
>>> aedtapp.modeler.purge_history(assignment=cylinder1)
>>> aedtapp.modeler.generate_object_history(assignment=cylinder1)