Docs Home
/
KCL Standard Library
/
Functions
/
clone

cloneFunction in std

Clone a sketch or solid.

This works essentially like a copy-paste operation. It creates a perfect replica at that point in time that you can manipulate individually afterwards.

This doesn't really have much utility unless you need the equivalent of a double instance pattern with zero transformations.

Really only use this function if YOU ARE SURE you need it. In most cases you do not need clone and using a pattern with instance = 2 is more appropriate.

// Clone an array that includes an imported geometry, solid and sketch.

Arguments

NameTypeDescriptionRequired
geometries[Sketch or Solid or ImportedGeometry; 1+]The sketch, solid, or imported geometry to be cloned.Yes

Returns

[Sketch or Solid or ImportedGeometry; 1+]

Examples

Found a typo?
Zookeeper is here!
You guide the design. Zookeeper does the work.