In GDL you need to do coordinate transformations (move the local origin in X, Y, Z direction then create things relative to the current location of the local origin). ADDX, ADDY ADDZ are such commands.
The DEL command deletes the last number of these coordinate transformation, which means it undoes those transformations.
There must be and error in the script because it is trying to delete more transformations than was performed. E.g. 3 coordinate transformations were performed but it wants to undo 4.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28