Title says it all. Export right now exports everything - visible + hidden layers, etc.
Now that we have layers, and use them to show and hide things that are not part of the ‘real’ design (guides, etc), exporting everything is a huge mess. I also use layers for simple two sided projects, and for projects where I ‘swap-in’ different items into a larger project.
At the very least, CC need an option to ‘Export visible only’. Exporting selected items only is also very useful.
The only real option right now is to duplicate the C2D file and delete everything else.
I think the real problem here is that the layers are not exported. SVG supports layers, so the layers in the design should get exported as layers in the SVG. The visibility and lock states should persist.
The SVG files that are exported from CC contains no layers.
SVG doesn’t support layers. InkScape and other programs emulate layers by using a convention for custom metadata tags when forming groups (which SVG does support) as in:
While I’m digging into the SVG import and export, I’m seeing other issues.
The color of the layer in CC does not export to the object color in SVG.
Groups in CC do not export to groups in SVG.
Groups in the SVG do not import as groups in CC.
There is some fun stuff with the position of elements:
Elements in the SVG imported into CC maintain their position in X, but the Y position always sets the bottom of the bounding box to zero.
The size of the SVG document exported from CC does not match the stock size, instead it is expanded to include the bounding size of the elements. This expansion only happens in the positive direction - elements that are off of the stock in the negative directions are off of the document in the SVG. The elements maintain their correct locations.
Now, I am doing all of this testing with Inkscape, so there may be some behavior specific to that application instead of the SVG file format generally.
I had put a similar suggestion in over the transom at our team chat, and am making it a formal request w/ a link back to your detailed and thorough post.
FWIW, my work-around for this difficulty is to duplicate what is visible and drag it off to an area of either the stock or the surrounding area before exporting — then when the file is imported, it is easy to delete all but what is wanted.
We’ll have to see what the developers think. Checkboxes for: