Home > SYS_FileManager > getSchematicFile
SYS_FileManager.getSchematicFile() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取原理图文件
Signature
typescript
function getSchematicFile(
fileName?: string,
password?: string,
fileType?: 'epro' | 'epro2',
): Promise<File | undefined>;1
2
3
4
5
2
3
4
5
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) 文件名 |
password | string | (Optional) 加密密码 |
fileType | 'epro' | 'epro2' | (Optional) 文件格式 |
Returns
Promise<File | undefined>
原理图文件数据,undefined 表示当前未打开原理图图页或数据获取失败
Remarks
ADD since EDA v3.2.183 可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统
注意:本接口需要启用 **工程设计图 > 文件导出** 权限,没有权限调用将始终 throw Error
/ EDA v4.1.23