duplicate_and_mirror#

Modeler2D.duplicate_and_mirror(assignment, origin, vector, is_3d_comp=False, duplicate_assignment=True)[source]#

Duplicate and mirror a selection.

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

Name or ID of the object.

originlist

List of the [x, y, z] coordinates or Application.Position object for the selection.

vectorfloat, str

List of the [x1, y1, z1] coordinates or Application.Position object for the vector.

is_3d_compbool, optional

If True, the method will try to return the duplicated list of 3dcomponents. The default is False.

duplicate_assignmentbool, optional

If True, the method duplicates selection assignments. The default value is True.

Returns:
list

List of objects created or an empty list.

References

>>> oEditor.DuplicateMirror