# 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.

Canonical: https://chart.syidax.com/docs/methods/importDrawingsFile/

<a id="definition"></a>

## Definition

```typescript
importDrawingsFile(file: Blob | string): Promise<DrawingsChangeEventDetail | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `file` | `Blob \| string` | Required |

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

- [DrawingsChangeEventDetail](https://chart.syidax.com/docs/types/DrawingsChangeEventDetail.md) — Type definition

<a id="related"></a>

## Related charts


