Home > PCB_ManufactureData > getBomTemplates
PCB_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.
获取 BOM 模板列表
Signature
typescript
getBomTemplates(): Promise<Array<string>>;1
Returns
Promise<Array<string>>
BOM 模板列表
Example
javascript
// 获取所有可用的 BOM 模板
const templates = await eda.pcb_ManufactureData.getBomTemplates();
console.log('可用的 BOM 模板:', templates);
templates.forEach((template, index) => {
console.log(`${index + 1}. ${template}`);
});1
2
3
4
5
6
2
3
4
5
6