Home > IPCB_PrimitivePad > getState_Metallization
IPCB_PrimitivePad.getState_Metallization() method
获取属性状态:是否金属化孔壁
签名
typescript
function getState_Metallization(): boolean;1
返回值
boolean
是否金属化孔壁
示例
javascript
// 1. 生成本次运行专用的坐标,创建一个金属化孔焊盘和一个非金属化孔焊盘
const x = 3000 + Math.floor(Math.random() * 100000);
const plated = await eda.pcb_PrimitivePad.create(12, '1', x, 3000, 0, ['ELLIPSE', 80, 80], '', ['ROUND', 30], 0, 0, 0, true, 0);
const nonPlated = await eda.pcb_PrimitivePad.create(12, '2', x + 500, 3000, 0, ['ELLIPSE', 80, 80], '', ['ROUND', 30], 0, 0, 0, false, 0);
// 2. 分别读取金属化状态
const platedMetallization = plated.getState_Metallization();
const nonPlatedMetallization = nonPlated.getState_Metallization();
// 3. 清理测试图元(查询类案例不留测试对象)
await eda.pcb_PrimitivePad.delete([plated.getState_PrimitiveId(), nonPlated.getState_PrimitiveId()]);
console.log('platedMetallization:', platedMetallization);
console.log('nonPlatedMetallization:', nonPlatedMetallization);1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14