set_objects_deformation#

Modeler2D.set_objects_deformation(assignment: list) → bool#

Assign deformation objects to a Workbench link.

Parameters:
assignmentlist

List of the deformation objects to assign to the Workbench link.

Returns:
bool

True when successful, False when failed.

References

>>> oDesign.SetObjectDeformation

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> box = app.modeler.create_box([0, 0, 0], [10, 10, 10])
>>> app.modeler.set_objects_deformation(assignment=box.name)