onDrawingNewRevision
Definition
As part of this process, DimensionIQ provides the host application with the new
The host application is responsible for persisting these changes by:
- Adding the new drawing storage provided in storage
- Adding the new DIQ_DrawingRevisionrecord to persistent storage
- Updating the existing layout records using the updated DIQ_Layoutobjects provided inpreviousLayouts
- Adding the new DIQ_Layoutrecords provided innewLayoutsto persistent storage
DimensionIQ will have already updated the revision relationships, including linking the new drawing revision to the previous drawing revision and linking the new layouts to their previous layout records. The host application should persist the records exactly as provided.
The host application must not delete the previous drawing storage as part of this callback.
Once processing is complete, please refer to the
This callback ensures the widget and the host application remain synchronized when a new drawing revision is created.
Function Signature
onDrawingNewRevision: (
drawing: DIQ_DrawingRevision,
storage: DIQ_Storage,
previousLayouts: Array<DIQ_Layout>,
newLayouts: Array<DIQ_Layout>,
onResponse: (result: DIQ_Result) => void
) => void;
Callback Parameters
drawing
Type: DIQ_DrawingRevision
Description: The
storage
Type: DIQ_Storage
Description: The
previousLayouts
Type: Array<DIQ_Layout>
Description: An array of
newLayouts
Type: Array<DIQ_Layout>
Description: An array of
onResponse
Type: (result: DIQ_Result) => void
Description: Callback function that must be called by the host to complete the operation.