器件焊盘图元
declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad Extends: IPCB_PrimitivePad
器件焊盘图元是一个特殊的图元,它指的是在 PCB 画布上关联到封装的焊盘
你只能通过 器件类的 getAllPinsByPrimitiveId 方法 或 器件图元的 getAllPads 方法 获取到器件焊盘图元
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
图元类型 |
|
Method |
Modifiers |
Description |
|---|---|---|
|
(BETA) 将对图元的更改应用到画布 | ||
|
(BETA) 获取连接的图元 | ||
|
获取属性状态:父器件图元 ID | ||
|
设置属性状态:父器件图元 ID |
图元类型
protected readonly primitiveType: EPCB_PrimitiveType.COMPONENT_PAD;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.
将对图元的更改应用到画布
done(): Promise<IPCB_PrimitiveComponentPad>;Promise<IPCB_PrimitiveComponentPad>
器件焊盘图元对象
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.
获取连接的图元
getConnectedPrimitives(onlyCentreConnection: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;|
Parameter |
Type |
Description |
|---|---|---|
|
onlyCentreConnection |
true |
是否仅中心连接,如若为 |
Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>
本接口可以获取到与焊盘直接接触的图元
getConnectedPrimitives(onlyCentreConnection: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill>>;|
Parameter |
Type |
Description |
|---|---|---|
|
onlyCentreConnection |
false |
Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill>>
获取属性状态:父器件图元 ID
getState_ParentComponentPrimitiveId(): string;string
父器件图元 ID
设置属性状态:父器件图元 ID
setState_ParentComponentPrimitiveId(): IPCB_PrimitiveComponentPad;器件焊盘图元对象
本器件焊盘图元属性不支持修改,本接口调用将不会有任何效果