Saving to DXF also keep hidden layers data

Bug #959159 reported by Yann Papouin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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.

Tags: dxf exporting
Revision history for this message
Yann Papouin (yann-papouin) wrote :
jazzynico (jazzynico)
tags: added: dxf exporting
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
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

Revision history for this message
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?

Revision history for this message
Yann Papouin (yann-papouin) wrote :

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

Revision history for this message
Alvin Penner (apenner) wrote :

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.