Home > PCB_Drc > getAllPadPairGroups
PCB_Drc.getAllPadPairGroups() 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.
Get the detailed properties of all pad pair groups
Signature
typescript
public getAllPadPairGroups(): Promise<Array<IPCB_PadPairGroupItem>>;1
Returns
Promise<Array<IPCB_PadPairGroupItem>>
Detailed properties of all pad pair groups
Example
javascript
// 1. 查询所有焊盘对组
const groups = await eda.pcb_Drc.getAllPadPairGroups();
// 2. 输出每个组的名称和焊盘对
console.log('count:', groups.length);
groups.forEach((g, i) => {
console.log('[' + i + '] name:', g.name);
g.padPairs.forEach((pair, j) => {
console.log(' pair[' + j + ']:', pair[0], '↔', pair[1]);
});
});1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11