Home > PCB_Drc > createPadPairGroup
PCB_Drc.createPadPairGroup() 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 a pad pair group
Signature
function createPadPairGroup(
padPairGroupName: string,
padPairs: Array<[string, string]>,
): Promise<boolean>;2
3
4
Parameters
Parameter | Type | Description |
|---|---|---|
padPairGroupName | string | Pad pair group name |
padPairs | Array<[string, string]> | Pad for array |
Returns
Promise<boolean>
Whether the operation is successful
Example
There are three different usages, and make sure the corresponding pads already exist on the canvas. They are: 1. Free pad - free pad; 2. Device pad - device pad; 3. Device pad - free pad await eda.pcb_Drc.createPadPairGroup('test',[['e0','e1']]) // 游离焊盘-游离焊盘 await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','R1:2'],['R2:1','R2:2']]) // 器件焊盘 - 器件焊盘 await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','e0'],['R1:2','e1']]) // 器件焊盘 - 游离焊盘