openscad icon indicating copy to clipboard operation
openscad copied to clipboard

DXF export in the latest development snapshot produces possibly incorrect files

Open JanKalin opened this issue 3 years ago • 21 comments

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: image

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.

Square_DXF.zip


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

JanKalin avatar May 26 '22 22:05 JanKalin

It would help if there's also a recovered version of the file, assuming that works as mentioned in the screenshot.

t-paul avatar May 26 '22 22:05 t-paul

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.

JanKalin avatar May 26 '22 22:05 JanKalin

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: @.***>

nophead avatar May 27 '22 00:05 nophead

Yes, the change for that is #3869.

t-paul avatar May 27 '22 00:05 t-paul

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.

ra9_10_latch_p05_ok_2021_01.dxf.txt

ra9_10_latch_p05_bad_2023_11_11.dxf.txt

zaitcev avatar Nov 14 '23 19:11 zaitcev