No, GLOB_LAYER can only tell you what layer an object has been placed in.
It doesn't allow you to set the layer.
There is no way to do that through GDL.
The best you can do if you want an object in a particular layer is to have a "Preferred_layer" parameter in the object with the required layer name as the value.
Then check if it matched the GLOB_LAYER.
If not you can tell the script to show a warning message that the object is in the wrong layer.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11