this is the source : Now I Have layers aligned by creating bounding box:
here is the model exported with "temp" line in red : and if I hide "temp" layer: Now I have to suppress doubles, remove the bounding box, and the hardest point, color splitted lines

EDIT: after remove doubles

I've to rework on bounding box lines, they have to be more small to not much interact with the render
The source code is available on my github workbench :
https://github.com/JeromeL63/Wood-Frame
the macro to launch :
Code: Select all
from WFrame import WFDxfExport
export = WFDxfExport.DxfExport(Gui.Selection.getSelection())
export.extractLayers()
export.extractModel()
export.save()
(sorry I haven't made security to launch with no selected objects at the moment !)