Home > PCB_PrimitivePad > get
PCB_PrimitivePad.get() 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.
获取焊盘
Signature
typescript
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePad>>;
1
Parameters
Parameter | Type | Description |
---|---|---|
primitiveIds | Array<string> | 焊盘的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组 |
Returns
Promise<Array<IPCB_PrimitivePad>>
焊盘图元对象,空数组表示获取失败
Remarks
如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象