Home > IPCB_PrimitivePad > getState_HeatWelding
IPCB_PrimitivePad.getState_HeatWelding() method
获取属性状态:热焊优化参数
签名
typescript
function getState_HeatWelding(): IPCB_PrimitivePadHeatWelding | null;1
返回值
IPCB_PrimitivePadHeatWelding | null
热焊优化参数
示例
javascript
// 1. 生成本次运行专用的坐标,创建一个带热焊参数的焊盘和一个普通焊盘
const x = 3000 + Math.floor(Math.random() * 100000);
const heated = await eda.pcb_PrimitivePad.create(1, '1', x, 3000, 0, ['ELLIPSE', 60, 60], '', null, 0, 0, 0, false, 0, undefined, null, { connectionMethod: 'Divergent', divergenceSpacing: 10, divergenceLineWidth: 8, divergenceAngle: 45 });
const plain = await eda.pcb_PrimitivePad.create(1, '2', x + 500, 3000, 0, ['ELLIPSE', 60, 60], '', null, 0, 0, 0, false, 0);
// 2. 分别读取热焊参数
const heatedConfig = heated.getState_HeatWelding();
const plainConfig = plain.getState_HeatWelding();
// 3. 清理测试图元(查询类案例不留测试对象)
await eda.pcb_PrimitivePad.delete([heated.getState_PrimitiveId(), plain.getState_PrimitiveId()]);
console.log('heatedConfig:', heatedConfig);
console.log('plainConfig:', plainConfig);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