I've been working on an Illustrator file, which is a map of Europe. Countries are grouped layers, and these countries have a subset of items (sometimes also grouped). The thing is that most subset items can appear in multiple countries, and must have the same name. See below for example.
All of a sudden, Illustrator not only shows 'x5F' in between items layers, but also adds '_#' after each item layer. However, I need all the layers in their original names. This was working great before, but suddenly changed. Basically, same name layers are suddenly no longer supported and I need it. Otherwhise I have to spend way to much time on changing this manually every time I create the SVG, and developers need this for a web application.
Example of current problem:
Example of previous situation and preferred situation:
I already changed 'Identify objects by' to 'XML ID' but that didn't change anything.
Does someone know what to do? I don't know if this is a bug or not, but it seems weird that is suddenly changed without doing an Illustrator upgrade.
Which version and system is it?
What is your workflow? You save the file as SVG and then open it and continue working? Or do you even open the file in a different application and then continue working on it? Which would be a bad idea, since SVG is not suitable for roundtripping in Illustrator.
It's version 25.2.3 on MacOS Mojave 10.14.6
The workflow is simple: I create the map in Illustrator as .ai, I save-as it as .svg, and the developer uses the .svg.
When something need to be adjusted, I open the original .ai file and follow the abovementioned workflow from the beginning. The original file is also the file that previously had layers with the same names.
Can you please upload a sample file?
I would like to, but this forum gives me an error each time I try to upload the file.
"The attachment's map.ai content type (application/postscript) does not match its file extension and has been removed."
Try: Dropbox, CC file sharing, Google, WeTransfer...
In the example you can see what I mean: BE is how it should be (and how it worked), while NL has all kinds of Illustrator generated additions. Most importantly, ELIA_TTN should always be the same name for development purposes.
Don't sue underscrore in layer names, use dashes.
underscore "_", will be saved as "_x5F_