Home > PCB_Drc > getAllEqualLengthNetGroups
PCB_Drc.getAllEqualLengthNetGroups() 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 equal-length net groups
Signature
typescript
function getAllEqualLengthNetGroups(): Promise<Array<IPCB_EqualLengthNetGroupItem>>;1
Returns
Promise<Array<IPCB_EqualLengthNetGroupItem>>
Detailed properties of all equal-length net groups
Example
javascript
// 1. 建一个测试等长组作为查询对象
await eda.pcb_Drc.createEqualLengthNetGroup('嘉立创示例_查询等长组', [], { r: 0, g: 255, b: 0, alpha: 1 });
// 2. 查询所有等长网络组
const groups = await eda.pcb_Drc.getAllEqualLengthNetGroups();
console.log('count:', groups.length);
groups.forEach((g, i) => {
console.log(`[${i}] name:`, g.name);
});
// 3. 清理测试等长组(查询类清理现场)
await eda.pcb_Drc.deleteEqualLengthNetGroup('嘉立创示例_查询等长组');1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12