How to use keyword 'LAYER' in the worksheet editor

Hi,

I found that there is a keywork ‘LAYER’ in the worksheet editor’s help, I think this keyword is to show the current work layer.

But when I add this keywork in the worksheet template, nothing appeared in this keywork place.

So could anyone tell me how to use this keyword?

Application: KiCad 工程图编辑器 (64-bit)

Version: (6.0.5), release build

Libraries:
wxWidgets 3.1.5
libcurl/7.82.0-DEV Schannel zlib/1.2.12

Platform: Windows 10 (build 22000), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
Date: May 3 2022 00:36:16
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.82.0-DEV
ngspice: 36
Compiler: Visual C++ 1929 without C++ ABI

Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON

A guess???

Anyone familiar with the Chinese? version?

Without testing I would say it refers to the layer where the text item exists on. It’s not meant for the worksheet.

Maybe you misunderstood what I refer to.

The item I refer to predefined keywords in the drawing sheet edotor, which is shown in the below:

I try to place the ‘LAYER’ in the drawing sheet template:
image

But nothing appeared at that place in the PCB editor:


And when I print the pcb drawing for each layer, there was also nothing at that place, no matter in gerber or in pdf drawing:

So I am very confused how to use the predefined keyword ‘LAYER’ in the drawing sheet editor?

@eelik also replie this message to you.

Sorry, I completely misunderstood your question.

As Eelik mentioned, ${LAYER} is the layer on which the Drawing Sheet exists. It is not a text keyword.