Home > PCB_Primitive > getPrimitiveBoardLine
PCB_Primitive.getPrimitiveBoardLine() 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
getPrimitiveBoardLine(primitiveId: string, layers?: Array<EPCB_LayerId>): IPCB_ComplexPolygon | undefined;1
Parameters
Parameter | Type | Description |
|---|---|---|
primitiveId | string | 图元 ID |
layers | Array<EPCB_LayerId> | (Optional) 需要计算的层,在计算器件、焊盘、过孔时能够精确计算指定多个层的边框线的并集 |
Returns
IPCB_ComplexPolygon | undefined
复杂多边形,如果图元 ID 未匹配或图元在指定层上不存在,则返回 undefined