evCreate API 5.7 Help

Duplicate Function

Creates one copy of each object item given in the array of object item objects from an Envision document currently opened in the Canvas Envision Creator app.

Duplicate( objs: [[[EvItem|canvas-envision-document-items.html#object-items]]][], offsetX?: number, offsetY?: number ): Promise<[[[EvItem|canvas-envision-document-items.html#object-items]]][]>

Parameters

objs: EvItem[]

An array of Object item objects, one or more original object items in the Envision document currently opened in the Canvas Envision Creator app that should be copied.

offsetX?: number

A number, a horizontal distance in the 2D length unit of measure global for the entire evCreate API to be set between the copies. Positive numbers move the copies right, and negative numbers move the copies left. If it is not specified, the default value is used. The default value is 10.

offsetY?: number

A number, a vertical distance in the 2D length unit of measure global for the entire evCreate API to be set between the copies. Positive numbers move the copies down, and negative numbers move the copies up. If it is not specified, the default value is used.

The default value is 10.

Return value

Promise<EvItem[]>

A Promise that, if fulfilled, resolves to an array of Object item objects of the created copies.

27 March 2025