Home > PCB_Drc > createEqualLengthNetGroup
PCB_Drc.createEqualLengthNetGroup() 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.
Create an equal-length net group
Signature
typescript
function createEqualLengthNetGroup(
equalLengthNetGroupName: string,
nets: Array<string>,
color: IPCB_EqualLengthNetGroupItem['color'],
): Promise<boolean>;1
2
3
4
5
2
3
4
5
Parameters
Parameter | Type | Description |
|---|---|---|
equalLengthNetGroupName | string | Equal-length net group name |
nets | Array<string> | Net name array |
color | IPCB_EqualLengthNetGroupItem['color'] | Equal-length net group color |
Returns
Promise<boolean>
Whether the operation is successful
Example
javascript
// 1. 创建一个空的等长网络组,指定面板显示颜色(保留现场供观察)
const created = await eda.pcb_Drc.createEqualLengthNetGroup('嘉立创示例_等长网络组', [], { r: 0, g: 255, b: 0, alpha: 1 });
console.log('created:', created);1
2
3
4
2
3
4