Home > PCB_ManufactureData > deleteBomTemplate
PCB_ManufactureData.deleteBomTemplate() 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
deleteBomTemplate(template: string): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
template | string | BOM 模板名称 |
Returns
Promise<boolean>
操作是否成功
Example
javascript
// 删除指定的 BOM 模板
const success = await eda.pcb_ManufactureData.deleteBomTemplate('MyCustomTemplate');
if (success) {
console.log('BOM 模板删除成功');
} else {
console.log('删除失败,可能是默认模板或模板不存在');
}1
2
3
4
5
6
7
2
3
4
5
6
7