Home > PCB_Drc > removePadPairFromPadPairGroup
PCB_Drc.removePadPairFromPadPairGroup() 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.
Remove a pad pair from a pad pair group
Signature
function removePadPairFromPadPairGroup(
padPairGroupName: string,
padPair: [string, string] | Array<[string, string]>,
): Promise<boolean>;2
3
4
Parameters
Parameter | Type | Description |
|---|---|---|
padPairGroupName | string | Pad pair group name |
padPair | [string, string] | Array<[string, string]> | Pad for |
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.removePadPairFromPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘 await eda.pcb_Drc.removePadPairFromPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘 await eda.pcb_Drc.removePadPairFromPadPairGroup('test',['R1:2','e1']) // 器件焊盘 - 游离焊盘