I want to export an Illustrator file to DWG, and I've got a lot of objects of which I want to keep the name. But to keep these info in AutoCAD, I have to transfer them as layers name (DWG/DXF export doesn't save object's name, but the name of the firts level layer) and put all these layers as first level layers (DWG/DXF export keeps just first level layers).
So I'd like to make or find a script able to something like that :
in my file,
for each object,
see if there is a layer with object's name
if there is no layer with the same name
create a layer,
give the name of the object to the layer
put the object in this layer
Is there anybody able to help me?
you'll need to select your layer then use "Release to Layers", that will create a sublayer for each object you have, then a script can rename such layers based on the named object it contains...then you can drag all sublayers out of their parent layer so they become main layers...all that is explained here, including script
Thanks for your answer, Carlos.
Finally I did it manually yesterday, but it will save a bunch of time next time I need to do it!