EvCreateApiOptions Interface
The EvCreateApiOptions TS interface defines a blueprint of a JS object with properties that configure the behavior of the entire evCreate API.
Properties
An EvCreateApiOptions object has the following properties:
optional angleUnit: EvAngleUnit;A member of the
EvAngleUnitenumeration, a unit of measurement for angle measurements across the entire evCreate API. The default value is"degrees"(EvAngleUnit.Degrees).optional precision: number;A number, the precision of floating point decimals. The default value is
-1, which is full precision.optional unit: EvDocUnit;A member of the
EvDocUnitenumeration, a unit of measurement for 2D lengths in Envision documents across the entire evCreate API. The default value is pixels:"px"(EvDocUnit.px).optional verifyObjectIdentifiers: boolean;A Boolean, a switch to specify whether to validate given object identifiers. The default value is
true. Setting it totruewill show error messages against invalid object identifiers but will slow down API functions that take object identifiers.
Examples
TS
JS
- { angleUnit: EvAngleUnit.Radians, precision: 4, unit: EvDocUnit.mm, verifyObjectIdentifiers: false }
- { angleUnit: "radians", precision: 4, unit: "mm", verifyObjectIdentifiers: false }