evCreate API 5.7 Help

SetLayerAction Function

Attaches one or more given layer actions to a given object item from an Envision document currently opened in the Canvas Envision Creator app.

SetLayerAction( obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], layerActions: [[[EvLayerAction|evlayeraction-interface.html]]][], tooltip?: string ): Promise<void>

Parameters

obj: EvItem

An Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app to which the given layer actions should be attached.

layerActions: EvLayerAction[]

An array of EvLayerAction objects, one or more layer actions that should be attached to the given object item.

tooltip?: string

A string, an optional custom tooltip that overrides the default tooltip of the given object item.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given layer actions have been successfully attached to the given object item in the current Envision document.

27 March 2025