evCreate API 5.7 Help

SetSmooth Function

Toggles the shape smoothness of a given multigon item from an Envision document currently opened in the Canvas Envision Creator app.

SetSmooth(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], smooth: boolean): Promise<void>

Parameters

obj: EvItem

An Object item object, a multigon item from the Envision document currently opened in the Canvas Envision Creator app whose shape smoothness should be toggled.

If a given object item is not a multigon, the function throws an error.

smooth: boolean;

A Boolean, a switch to toggle the shape smoothness of the given multigon item:

  • true: sharp corners and straight edges.

  • false: rounded corners and curved edges.

A smooth parameter controls the smoothness of the corners of a given multigon.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the shape smoothness of the given multigon item in the current document has been successfully toggled.

09 April 2025