eda_pcb_layer_get_current_layer
Get detailed properties of the currently active PCB layer. Use this to identify which layer is selected and access its attributes for design context.
Instructions
pcb_Layer.getCurrentLayer() -> Promise<IPCB_LayerItem | undefined>
获取当前图层的详细属性
remarks: ADD since EDA v4.2
returns: 当前图层的详细属性,无激活层或无 PCB 画布时返回 undefined
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |