evCreate API 5.7 Help

SetCurrentLayer Function

Sets a given layer as currently selected (active) on the page currently selected (active) in an Envision document currently opened in the Canvas Envision Creator app.

SetCurrentLayer(layer: [[[EvItem|canvas-envision-document-items.html#layer-items]]]): Promise<void>

Parameters

layer: EvItem

A Layer item object of a layer that should be currently selected (active) on the page currently selected (active) in the Envision document currently opened in the Canvas Envision Creator app.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given layer has been successfully selected (activated) on the current page in the current Envision document.

Discussion

If the given layer is not on the current page, the function will raise an error.

12 March 2025