> For the complete documentation index, see [llms.txt](https://help.auxalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.auxalia.com/plant-tools/de/plantbatch/how-to-use/configuration/implementing-counter.md).

# Zähler implementieren

In diesem Kapitel wird beschrieben, wie Sie einen Zähler implementieren können, der dann am unteren Rand des PlantBatch-Dialogs verwendet wird.

Sie müssen lediglich diese roten Zeilen in Ihr **Execution Script** einfügen.

```
**(progn**
```

```
**(setq f (open "[StatusFile]" "w"))**
```

```
**(princ "[DrawingIndex]|[DrawingCount]|[FilePathAndNameExt]" f)**
```

```
**(close f)**
```

```
**)**
```

```
_OPEN
```

```
"[FilePathAndNameExt]"
```

```
_.AqaPETUpdateCalculationsDrawing
```

```
_.AqaPETUpdateListInDrawing
```

```
_.AqaPlUpdateLinksInCurrentDrawing
```

```
(command "AUTOPUBLISH" "")
```

```
_QSAVE
```

Das würde dann folgendermaßen aussehen:

![](https://1597188389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftg6rDNE6Mp4JEEHacwjD%2Fuploads%2Fgit-blob-824d5b66e60b9af6bbd7ce452efd13ecfc3c97fc%2FPB-MainDialog-0054.png?alt=media)

Wie dies in PlantBatch dargestellt wird, sehen Sie unter [Hauptdialog](/plant-tools/de/plantbatch/how-to-use/user-interface/main-dialog.md).
