API REFERENCE

importDrawingsFile

replaces the drawing document from a picked file (a File / Blob of the envelope, or its text); a file that is not JSON is declined (null) and the document stays.

Definition

typescript
importDrawingsFile(file: Blob | string): Promise<DrawingsChangeEventDetail | null>
ArgumentsTypeRequired
fileBlob | stringRequired

Return type: Promise<DrawingsChangeEventDetail | null>. Call the method after element registration and await its Promise result.