SetSmooth Function
Toggles the shape smoothness of a given polygon 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: EvItemAn Object item object, a polygon 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 polygon, the function throws an error.
smooth: boolean;A Boolean, a switch to toggle the shape smoothness of the given polygon item:
false: sharp corners and straight edges.true: rounded corners and curved edges.

Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the shape smoothness of the given polygon item in the current document has been successfully toggled.
09 April 2025