Create Function
Creates a new polygon item in an Envision document currently opened in the Canvas Envision Creator app.
Parameters
points: EvCoord2D[]An array of
EvCoord2Darrays, an array of 2D coordinates of points that define the vertices of the new polygon item.For a closed polygon, the coordinates of the starting and ending points must be the same.

smooth: boolean;A Boolean, a switch to set the shape smoothness of the new polygon item:
false: sharp corners and straight edges.true: rounded corners and curved edges.

zOrder?: EvObjectZOrderAn
EvObjectZOrderobject that includes:The layer item object of a layer in the current document where the new polygon item should be added. The default value is the current layer on the current page.
The position of the new polygon item in the stack of object items on the given layer. It is a zero-based index that is
0for the topmost object item on the layer and increases by1for each following object item going down the stack. The default value is0.