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:
- assignment
list
,str
,int
,Object3d
orUserDefinedComponent
Name or ID of the object.
- axis
str
Coordinate system axis or the Application.AXIS object.
- angle
float
,optional
Angle rotation in degees. The default is
90
.- clones
int
,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 isFalse
.- duplicate_assignmentbool,
optional
If True, the method duplicates selection assignments. The default value is
True
.
- assignment
- Returns:
References
>>> oEditor.DuplicateAroundAxis