Copy link to clipboard
Copied
Hello, I am working on a project that contains variable data. I have a CSV setup with 5 text variables and an image link. When I run the import into illustrator everything works as it should on the art board, however the i can't get the data set name listed in the variables window to reflect the name of the field in the CSV "dataset". I have tried this with a quick XML, and it works, however all the data going to our graphics department real time is in CSV. Does anyone know if I have to call out the dataset name in the CSV differently from CSV, or bind it somehow?
See images to show XML vs CSV import.
Thanks in advance,
Jason
Copy link to clipboard
Copied
Why not try to import your data with the VariableImporter script?
Copy link to clipboard
Copied
Are there any APIs in SDK to do the same? I have seen there are DataSet and Variable classes in DOM which fulfill the purpose. But could not find anything in SDK related to DataSet and Variable.
Any help would be appreciated!
Copy link to clipboard
Copied
I do not know about the realm of the SDK at this time, only ExtendScript, sorry.
Copy link to clipboard
Copied
The problem with Varible Importer is that you can't use spaces in variables. If you are working with anything that is multiple words it breaks.
Copy link to clipboard
Copied
Did you find the solution?
Copy link to clipboard
Copied
the native feature does not have an option to name Datasets. The alternatives are the use XML or Variable Importer Script mentioned above
Copy link to clipboard
Copied
I gave the same answer to a similar title, but I think it might help.
Free Online Illustrator Variables XML editor and converter
Copy link to clipboard
Copied
oh that's a good one, I didn't know about it.
thanks
Copy link to clipboard
Copied
That site is one of three that I previously mentioned in my original blogpost on the Variable Importer script!
Prepression: Illustrator – Introducing the VariableImporter Script