evCreate API 5.7 Help

Layer evCreate API Section

The Layer section of the evCreate API includes interfaces and functions to manage items on the layer level of the Envision document hierarchy.

layer namespace

The Layer evCreate API section is accessed with the layer namespace:

evCreate.layer.Function()

Interfaces

EvLayerAttributes

An interface that defines the attributes of a given layer.

Functions

CountObjects(layer: EvItem): Promise<number>

A function to count the number of objects on a given layer.

GetAttributes(layer: EvItem): Promise<EvLayerAttributes>

A function to get an object with the attributes of a given layer.

GetObjects(layer: EvItem): Promise<EvItem[]>

A function to get all objects existing on a given layer.

SetLocked(layer: EvItem, isLocked: boolean): Promise<void>

A function to lock or unlock a given layer against editing.

SetName(layer: EvItem, name: string): Promise<void>

A function to rename a given layer.

SetVisible(layer: EvItem, isVisible: boolean): Promise<void>

A function to hide or show a given layer on the page.

SetZOrder(layer: EvItem, index: number): Promise<void>

A function to move a given layer within the stack of layers on the page.

12 March 2025