Home > IPCB_PrimitiveComponent > getState_OtherProperty
IPCB_PrimitiveComponent.getState_OtherProperty() method
获取属性状态:其它参数
签名
typescript
function getState_OtherProperty(): Record<string, string | number | boolean> | undefined;1
返回值
Record<string, string | number | boolean> | undefined
其它参数
示例
javascript
// 1. 放置一个测试器件
const devices = await eda.lib_Device.search('C0402');
const comp = await eda.pcb_PrimitiveComponent.create(devices[0], 1, 5000, 5000);
// 2. 读取其它参数字典
const otherProperty = comp.getState_OtherProperty();
// 3. 清理测试器件
await eda.pcb_PrimitiveComponent.delete([comp.getState_PrimitiveId()]);
console.log('propertyCount:', Object.keys(otherProperty).length);
console.log('value:', otherProperty.Value);
console.log('description:', otherProperty.Description);1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13