Home > IPCB_PrimitiveComponent > getState_ManufacturerId
IPCB_PrimitiveComponent.getState_ManufacturerId() method
Get the property state: manufacturer ID
Signature
typescript
public getState_ManufacturerId(): string | undefined;1
Returns
string | undefined
Manufacturer ID
Example
javascript
// 1. 放置一个测试器件
const devices = await eda.lib_Device.search('C0402');
const comp = await eda.pcb_PrimitiveComponent.create(devices[0], 1, 5000, 5000);
// 2. 读取制造商编号
const manufacturerId = comp.getState_ManufacturerId();
// 3. 清理测试器件
await eda.pcb_PrimitiveComponent.delete([comp.getState_PrimitiveId()]);
console.log('manufacturerId:', manufacturerId);1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11