I checked what Olivier mentioned. What I found is that there are no COOR2 and COOR22 commands in GDL. The line in the Round Window's Script goes like this:
coor 2,-1,-3,-4,-2
COOR is the name of the GDL command and 2 is its first parameter, which is wrap. wrap: wrapping mode + projection type
Since this value is 2, it means that wrapping mode = 2 and projection mode =0
I guess if projection mode is zero, the whole COOR command has no effect. But if you write this:
coor 22,-1,-3,-4,-2
it means that wrapping mode = 2 and projection mode =20
What I can imagine is that if projection mode <> 0 then it will assume you want to use the default projection mode (projection mode = 256) and this is why it works. Another possible thing might be that there is a 20 value for projection mode, which is valid and has a certain effect.
But I think there are no COOR2 or COOR22 GDL commands.
Try it, write this:
coor2 2,-1,-3,-4,-2
or
coor22 2,-1,-3,-4,-2
it won't work. AC will tell you it cannot find the COOR2 or COOR22 macros, which means COOR2 and COOR22 are not reserved keywords but can be the names of macros.
I hope this clarifies things a bit more.
Also, I agree with what Bill wrote. You should always place the COOR statement after the GDL command defining the body you want to apply it to, just as stated in the GDL Manual. It is always safe and recommended to place a BASE command before the VERT (or TEVE) statements and a BODY command after the COOR statement so it will be one independent unit of body definition and will surely not get mixed with other bodies in the same 3D Script.
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-Ac27