Home > PCB_Layer > getCurrentLayer
PCB_Layer.getCurrentLayer() 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.
Get the detailed properties of the current layer
Signature
typescript
function getCurrentLayer(): Promise<IPCB_LayerItem | undefined>;1
Returns
Promise<IPCB_LayerItem | undefined>
Detailed properties of the current layer. undefined is returned when there is no active layer or no PCB canvas
Remarks
ADD since EDA v4.2