Home > SCH_ManufactureData > getBomFile
SCH_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
public getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{ property: string; includeValue: string | false | true }>, statistics?: Array<string>, property?: Array<string>, columns?: Array<IPCB_BomPropertiesTableColumns>, assemblyVariantsConfig?: { text: string; value: string }): Promise<File | undefined>;Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) 文件名 |
fileType | 'xlsx' | 'csv' | (Optional) 文件类型 |
template | string | (Optional) 模板名称 |
filterOptions | Array<{ property: string; includeValue: string | false | true }> | (Optional) 过滤规则,仅应包含需要启用的规则, |
statistics | Array<string> | (Optional) 统计,包含所有需要启用的统计项的名称 |
property | Array<string> | (Optional) 属性,包含所有需要启用的属性的名称 |
columns | (Optional) 列的属性及排序, | |
assemblyVariantsConfig | { text: string; value: string } | (Optional) 装配体变量配置 |
Returns
Promise<File | undefined>
BOM 文件数据
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统