Saving to DXF also keep hidden layers data

Bug #959159 reported by Yann Papouin on 2012-03-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Alvin Penner

Bug Description

I'm using a svg file to store in the same place the design (one layer) and the cutting data (other layer).
Sometimes I need to give a DXF "ready to use" to my professional subcontractor printer/cutter, so the DXF should only contains useful data.

I've added a new option in dxf_outline named "visibleLayers". If the option is checked and a layer is not visible (style="display:none"), then it will not be added to the layer list and all content will not be parsed.

See attachment.

Yann Papouin (yann-papouin) wrote :
jazzynico (jazzynico) on 2012-03-19
tags: added: dxf exporting
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Triaged
Alvin Penner (apenner) wrote :

thanks for the patch, this looks very interesting!
- there is one case where it behaves unexpectedly. If I start a new drawing and export it immediately, then the default layer will not be printed, regardless of the setting of 'keep only visible layers'
- this may be related to the fact that a layer can be visible in two distinct cases, case 1 (default case) the style attribute does not exist., case 2 (not so common) style attribute has value display:inline

Alvin Penner (apenner) wrote :

attached is a modified version of the file dxf_outlines.py. This version will save everything unless it explicitly sees the property display:none. Will this approach be compatible with the software you are using?

Yann Papouin (yann-papouin) wrote :

Thank you Alvin, this implementation is still compatible and better for me too, I'm Ok with it.

Alvin Penner (apenner) wrote :

good to hear, committed to rev 11130, thanks Yann!

Changed in inkscape:
status: Triaged → Fix Committed
su_v (suv-lp) on 2012-03-27
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
milestone: none → 0.49
Bryce Harrington (bryce) on 2015-02-21
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments