openscad
openscad copied to clipboard
DXF export in the latest development snapshot produces possibly incorrect files
Using the latest development snapshot, 2022.05.15.ci11888 (git 6aae79634) on Windows 10, the DXF files are apparently incorrect. Steps to reproduce:
- Create a simple script that produces a square:
square(10); - Render with F6 and export with File|Export|DXF
- Load into Autodesk's DXF viewer https://viewer.autodesk.com/designviews
The viewer complains that the file is invalid:

Repeating the same steps with the stable version 2021.01 works OK. Possibly the problem is in the Autodesk's viewer, but a colleague of mine also tried importing it into CorelDraw and it failed. I've attached the two files produced by different versions.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
It would help if there's also a recovered version of the file, assuming that works as mentioned in the screenshot.
I absolutely agree. But I don't have access to AutoCAD or I would have tried it. Perhaps someone with access can try - the file is Square_developer_snapshot.dxf in the attached ZIP.
Square_release.dxf is four separate lines according to InkScape but Square_developer_snapshot.dxf is a single path that is a square.
On Thu, 26 May 2022 at 23:58, JanKalin @.***> wrote:
I absolutely agree. But I don't have access to AutoCAD or I would have tried it. Perhaps someone with access can try - the file is Square_developer_snapshot.dxf in the attached ZIP.
— Reply to this email directly, view it on GitHub https://github.com/openscad/openscad/issues/4268#issuecomment-1139127238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEKHBJHRRFOGJKSY3KO2ZLVL76YDANCNFSM5XCRZDWA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yes, the change for that is #3869.
I built from source at the development tip and stepped on this, I suspect. Uploading the DXF to SendCutSend crashes the website, the part has no preview.
I haven't bisected this yet. Could be #3869.
Last known working release for me is 2021.01 (sorry). The failed release is from github, reports itself as 2023.11.11.