Home > SCH_ManufactureData > getBomTemplates
SCH_ManufactureData.getBomTemplates() 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.
Get BOM template list
Signature
typescript
function getBomTemplates(): Promise<Array<string>>;1
Returns
Promise<Array<string>>
BOM template list
Example
javascript
// 1. 获取全部 BOM 模板名
const templates = await eda.sch_ManufactureData.getBomTemplates();
// 2. 逐个查看
console.log('模板数量:', templates.length);
templates.forEach((name, index) => console.log(`模板 ${index + 1}:`, name));1
2
3
4
5
6
2
3
4
5
6