Dimensions
The Dimensions subsection of the Object section of the evCreate API includes enumerations and functions to create and update dimension items.
dimensions namespace
The Dimensions subsection of the Object evCreate API section is accessed with the dimensions namespace inside the object namespace:
Enumerations
EvAutoDimensionsTypesAn enumeration of options for auto-dimensioning object items.
EvDimensionsTextDisplayTypeAn enumeration of options for placing the dimension label relative to the dimension arrow line.
Functions
AutoCreate(objs: EvItem[], type?: EvAutoDimensionsTypes): Promise<EvItem[]>A function to draw auto-dimensions of a given type for given object items.
SetCustomValue(obj: EvItem, value: string): Promise<void>A function to replace the auto-measured value of a given dimension item with a given custom value.
SetTextCentered(obj: EvItem, centered: boolean): Promise<void>A function to manage the centering of the label along the arrow line of a given dimension item.
SetTextDisplay(obj: EvItem, textDisplay: EvDimensionsTextDisplayType): Promise<void>A function to move the label to a given position on the arrow line of a given dimension item.
SetUseCustomValue(obj: EvItem, use: boolean): Promise<void>A function to enable or disable custom values for a given dimension item.