Home > SYS_FileManager > getCbbFileByCbbUuid
SYS_FileManager.getCbbFileByCbbUuid() 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.
使用复用模块 UUID 获取复用模块文件
Signature
typescript
getCbbFileByCbbUuid(cbbUuid: string, libraryUuid?: string, props?: {
fileName?: string;
password?: string;
fileType?: 'epro' | 'epro2';
templateSchematicUuid?: string;
templatePcbUuid?: string;
}): Promise<File | undefined>;1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
|---|---|---|
cbbUuid | string | 复用模块 UUID |
libraryUuid | string | (Optional) 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
props | { fileName?: string; password?: string; fileType?: 'epro' | 'epro2'; templateSchematicUuid?: string; templatePcbUuid?: string; } | (Optional) |
Returns
Promise<File | undefined>
复用模块文件数据,undefined 表示数据获取失败
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统
注意:本接口需要启用 **团队模块 > 下载模块** 权限,没有权限调用将始终 throw Error