Home > IPCB_PrimitiveComponentPad > getConnectedPrimitives
IPCB_PrimitiveComponentPad.getConnectedPrimitives() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
获取连接的图元
签名
typescript
getConnectedPrimitives(onlyCentreConnection: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
onlyCentreConnection | true | 是否仅中心连接,如若为 |
返回值
Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>
备注
本接口可以获取到与焊盘直接接触的图元