duplicate_around_axis#

Modeler2D.duplicate_around_axis(assignment, axis, angle=90, clones=2, create_new_objects=True, is_3d_comp=False, duplicate_assignment=True)[source]#

Duplicate a selection around an axis.

Parameters:
assignmentlist, str, int, Object3d or UserDefinedComponent

Name or ID of the object.

axisstr

Coordinate system axis or the Application.AXIS object.

anglefloat, optional

Angle rotation in degees. The default is 90.

clonesint, optional

Number of clones. The default is 2.

create_new_objects

Whether to create the copies as new objects. The default is True.

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:
tuple

References

>>> oEditor.DuplicateAroundAxis