imprint#

Modeler3D.imprint(blank_list: str | int | list | Object3d, tool_list: str | int | list | Object3d, keep_originals: bool = True) → bool#

Imprint an object list on another object list.

Parameters:
blank_listlist of Object3d or list of int

List of objects to imprint from. The list can be of either ansys.aedt.core.modeler.cad.object_3d.Object3d objects or object IDs.

tool_listlist of Object3d or list of int

List of objects to imprint. The list can be of either Object3d objects or object IDs.

keep_originalsbool, optional

Whether to keep the original objects. The default is True.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.Imprint

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> box1 = app.modeler.create_box([0, 0, 0], [10, 10, 10], name="Box1")
>>> box2 = app.modeler.create_box([5, 5, 0], [10, 10, 10], name="Box2")
>>> app.modeler.imprint(blank_list=[box1], tool_list=[box2])