eda_pcb_primitive_get_primitive_board_line
Get the border line (complex polygon) of a PCB primitive by its ID and optional layers. Returns the outline geometry for analysis or further processing, or undefined if the primitive is not found on the specified layers.
Instructions
pcb_Primitive.getPrimitiveBoardLine(primitiveId: string, layers?: Array) -> Promise<IPCB_ComplexPolygon | undefined>
获取图元的边框线
returns: 复杂多边形,如果图元 ID 未匹配或图元在指定层上不存在,则返回 undefined
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |