Skip to main content

onDrawingNew

Last updated 5/03/2026

Definition

is a host callback invoked by
DimensionIQWidget
when a new drawing revision has been added in the widget component and the host application must handle it's persistent storage and its related layouts.

Once processing is complete, please refer to the

onResponse
contract in the Widget Callback Introduction.

This callback ensures the widget and the host application remain synchronized regarding the drawing's creation state.

Function Signature

TypeScript
Function Signature
onDrawingNew: (
drawing: DIQ_DrawingRevision,
layouts: Array<DIQ_Layout>,
onResponse: (result: DIQ_Result) => void
) => void;

Callback Parameters

drawing
Type: DIQ_DrawingRevision
Description: The newly created

object from the widget.

layouts
Type: Array<DIQ_Layout>
Description: An array of

objects associated with the drawing revision.

onResponse
Type: (result: DIQ_Result) => void
Description: Callback function that must be called by the host to complete the operation.

Examples

onDrawingNew