The answer to this poll will be interesting - how many people need to work with codes for layers.
This message is not to interfere with the poll, but to suggest some workarounds in the meantime, since even if the wish is granted, you'll have to wait a year or more to see it....
Have you considered using the 'extension' field of each layer name to store your ID code? (Layers do have an internal ID - which can be seen in Attribute Manager - but that is quite different from your question.)
Your question is really the same that accounting people have when they look at QuickBooks or Peachtree and say "but I want account numbers like in 1960, not names like in 2008". Possible here as it is there, with some fudging.
If you use either a code prefix or a code suffix (extension), it is relatively easy to edit the XML file for a DWG translator to delete all but the code and create a translator that just exports the code for each layer. Would not by dynamic (would have to re-edit the translator when new layers are added or changed), which I'm sure you want, but once a template is stable, one tends not to ever add or change layers...)
Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier • macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB