Skip to main content

copy()

[2D] Creates linear copies along an axis inside a sketch.

Returns: SceneObject

tip

See the guide for detailed usage examples.

Signatures

copy(type: "linear", axis: AxisLike, options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject

[2D] Creates linear copies along an axis inside a sketch.

ParameterTypeDescription
type"linear"Must be 'linear'
axisAxisLikeThe axis to copy along
optionsLinearCopyOptionsCopy count, spacing, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)

copy(type: "linear", axis: AxisLike[], options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject

[2D] Creates linear copies along multiple axes inside a sketch.

ParameterTypeDescription
type"linear"Must be 'linear'
axisAxisLike[]The axes to copy along
optionsLinearCopyOptionsCopy count, spacing, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)

copy(type: "linear", axis: AxisLike, options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject

[3D] Creates linear copies along an axis.

ParameterTypeDescription
type"linear"Must be 'linear'
axisAxisLikeThe axis to copy along
optionsLinearCopyOptionsCopy count, spacing, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)

copy(type: "linear", axis: AxisLike[], options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject

[3D] Creates linear copies along multiple axes.

ParameterTypeDescription
type"linear"Must be 'linear'
axisAxisLike[]The axes to copy along
optionsLinearCopyOptionsCopy count, spacing, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)

copy(type: "circular", center: Point2DLike, options: CircularCopyOptions, ...objects: SceneObject[]): SceneObject

[2D] Creates circular copies around a center point inside a sketch.

ParameterTypeDescription
type"circular"Must be 'circular'
centerPoint2DLikeThe center point to copy around
optionsCircularCopyOptionsCopy count, angle, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)

copy(type: "circular", axis: AxisLike, options: CircularCopyOptions, ...objects: SceneObject[]): SceneObject

[3D] Creates circular copies around an axis.

ParameterTypeDescription
type"circular"Must be 'circular'
axisAxisLikeThe axis to copy around
optionsCircularCopyOptionsCopy count, angle, etc.
...objectsSceneObject[]The objects to copy (defaults to last object) (optional)