Home > PCB_ManufactureData > getBomFile
PCB_ManufactureData.getBomFile() 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.
获取 BOM 文件
Signature
typescript
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
property: string;
includeValue: boolean | string;
}>, statistics?: Array<string>, property?: Array<string>, columns?: ITableColum[]): Promise<File | undefined>;
1
2
3
4
2
3
4
Parameters
Parameter | Type | Description |
---|---|---|
fileName | string | (Optional) 文件名 |
fileType | 'xlsx' | 'csv' | (Optional) 文件类型 |
template | string | (Optional) 模板名称 |
filterOptions | Array<{ property: string; includeValue: boolean | string; }> | (Optional) 过滤规则,仅应包含需要启用的规则, |
statistics | Array<string> | (Optional) 统计,包含所有需要启用的统计项的名称 |
property | Array<string> | (Optional) 属性,包含所有需要启用的属性的名称 |
columns | ITableColum[] | (Optional) 列的属性及排序, |
Returns
Promise<File | undefined>
BOM 文件数据
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统