Create Function
Creates an arc item in an Envision document currently opened in the Canvas Envision Creator app.
Parameters
center: EvCoord2DAn
EvCoord2Dtype alias, an array of the X and Y coordinates of the center of the ellipse that defines the arc shape of the new arc item.
xRadius: numberA number, a semi-axis of the ellipse that defines the arc shape along the horizontal axis of the bounding box of the new arc item.
For arc shapes between the
xRadiusandyRadius,xRadiusis equal to the width of the bounding box of an arc item.
For arc shapes crossing the
yRadius,xRadiusis half the bounding box width.
Resizing the bounding box width updates the
xRadius.yRadius: numberA number, a semi-axis of the ellipse that defines the arc shape along the vertical axis of the bounding box of the new arc item.
For arc shapes between the
xRadiusandyRadius,yRadiusis equal to the height of the bounding box of an arc item.
For arc shapes crossing the
xRadius,yRadiusis half the bounding box height.
Resizing the bounding box height updates the
yRadius.startAngle: numberA number, an angle in the angle unit of measure (UoM) global for the entire evCreate API between the following parts of the new arc item:
The vertical axis of the bounding box.
The starting radius.
The
0angle is the 12 o'clock position: the starting arc radius aligns with the vertical axis of the arc bounding box. Positive numbers rotate the starting radius from the vertical bounding box axis clockwise, and negative numbers rotate it counterclockwise. A valid value depends on the angle UoM. For degrees, it is in the range from-359.0to359.0.
spanAngle: numberA number, an angle in the angle UoM global for the entire evCreate API between the following parts of the new arc item:
The starting radius.
The ending radius.
Positive numbers rotate the ending radius from the starting radius clockwise, and negative numbers rotate it counterclockwise. A valid value depends on the angle UoM. For degrees, it is in the range from
-359.0to359.0.zOrder?: EvObjectZOrderAn
EvObjectZOrderobject that includes:The layer item object of a layer in the current document where the new arc item should be added. The default value is the current layer on the current page.
The position of the new arc 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.