duplicate_along_line

Modeler2D.duplicate_along_line(objid, vector, nclones=2, attachObject=False, is_3d_comp=False)

Duplicate a selection along a line.

Parameters
objidstr, int, or Object3d

Name or ID of the object.

vectorlist

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

attachObjectbool, optional

The default is False.

nclonesint, optional

Number of clones. The default is 2.

is_3d_compbool, optional

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

Returns
——-
tuple

References

>>> oEditor.DuplicateAlongLine