SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

2D DXF Export howto? (by Oliver)
Hello All,

is there anything I have to observe to get 2D DXF export of a 2D sketch?

I attached the simple SoveSpace file I used for my tests.

PDF and SVG export (File -> Export 2D View) works as expected, but viewing the DXF with DraftSight or Qcad shows only the measures are shown, not the sketch lines.

DraftSight tells me that there is a 3D polyline at 0,0, but doesn't display anything.

Did I miss anything in the docs?

Thanks in advance,

Oliver
Thu Feb 2 2017, 12:52:48, download attachment SolveSpace_DXF_Test.slvs
(no subject) (by whitequark)
What's the SolveSpace version (Help → About) ? This is what I get on both 3.0 and 2.3:
Thu Feb 2 2017, 13:34:00, download attachment untitled.dxf
(no subject) (by whitequark)
To be more specific: the attached file above has the sketch lines as well as dimensions.
Thu Feb 2 2017, 13:34:46
(no subject) (by Oliver)
Hi whitequark,

thanks for the reply. I'm using the latest Windows binary 2.3.

untitled.dxf also doesn't show the sketch lines in DraftSight and Qcad, inkscape yields an error. That's my problem.

Do you know any program handling the dxf correctly?
Fri Feb 3 2017, 01:41:57
(no subject) (by whitequark)
Oliver, I'm using librecad to check these files.
Fri Feb 3 2017, 03:27:47
(no subject) (by Tristan)
Hello,

I am having a similar difficulty exporting 2d dxf (Export 2d View). I am using SolveSpace 2.3 (which I am hugely enjoying, thank you) on OSX 10.11.6. Attached is an example SolveSpace file from which I then exported the dxf file. In QCAD I could not see lines, only the dimensions. A360 viewer said there was an error and would not load the file.

This is what I did to create the example file

I deleted my old SolveSpace from /Applications
I copied a new SolveSpace from the dmg

In SolveSpace
File->New
select "central point"
New Group->Sketch in New Workplace
draw rectangle (the entire sketch is one rectangle)
File->Save
File->Export 2d View
Quit

Look at dxf in QCAD

I wonder if I have mis-selected option(s) within SolveSpace which has resulted in this effect. I seem to recall previously successfully exporting and importing a dxf file into QCAD with SolveSpace 2.3.

I noticed that with my new install of SolveSpace a previous Group was still present. Is there a global configuration file I could delete and then repeat above?

Kind regards and thanks,
Tristan
Fri Feb 3 2017, 03:48:16, download attachment file2.slvs
(no subject) (by whitequark)
@All: can you try exporting using SolveSpace 2.2?

I have a suspicion as to the nature of the bug, see https://github.com/solvespace/solvespace/issues/187.
Fri Feb 3 2017, 06:45:03
(no subject) (by Tristan)
Hello,

With SolveSpace 2.2 run directly from the dmg (and the file created with 2.3) I can export a dxf which seems to be correct (dimensions and lines) in both QCAD and A360 viewer.

Kind regards,
Tristan
Fri Feb 3 2017, 07:53:14
(no subject) (by Oliver)
also under Windows, solvespace 2.2 generates dxf readable in DraftSight, thanks!

BTW: LibreCAD 2.1.3 displays sketch lines from solvespace 2.3.

But LibreCAD has even more quirks than Qcad. I made a screen shot from the example PDF: The measures are crossed by the dimension, ugly.

If one doesn't need "libre" software, the gratis DraftSight is my recommendation.
Fri Feb 3 2017, 09:10:18, download attachment LibreCAD.png
(no subject) (by Oliver)
Sorry, s/PDF/DXF/ in previous post
Fri Feb 3 2017, 09:12:22
(no subject) (by whitequark)
Can you verify that the attached file can be read by QCad, DraftSight, AutoCAD?
Sun Feb 5 2017, 04:42:10, download attachment untitled.dxf
(no subject) (by Oliver)
The dxf contains a rectangle 41.4 by 58.4 mm˛ when viewed with Draftsight or Qcad.
Sun Feb 5 2017, 06:44:52
(no subject) (by whitequark)
Here is a build of SolveSpace 2.3 with this bug fixed: https://ci.appveyor.com/api/bu...2Fsrc%2FDebug%2Fsolvespace.exe
Sun Feb 5 2017, 08:56:16
(no subject) (by whitequark)
... and a macOS build as well.
Sun Feb 5 2017, 11:36:22, download attachment solvespace.dmg
(no subject) (by Oliver)
great, thanks!
Sun Feb 5 2017, 12:30:14
(no subject) (by Tristan)
Hello,

With the new dmg, the exported dxf does not appear to be read correctly by QCAD. I can see the dimensions, but the Y axis seems to have been squashed to length zero, such that the lines appear to lie (only) on the X axis.

With SolveSpace 2.2 the same slvs file (created in stock 2.3) exports a dxf that QCAD reads as I expect.

Kind regards and thanks,
Tristan
Sun Feb 5 2017, 18:03:15
(no subject) (by EvilSpirit)
Tristan, can you attach slvs and correspondent dxf output? Also, say what version of QCad do you have? I have no such problem with free version of QCad 3.13
Mon Feb 6 2017, 03:46:22
(no subject) (by Oliver)
also the Windows 2.3~59d40128 doesn't export as expected (like version 2.2)

But that's no problem for me, I can use Version 2.2
Mon Feb 6 2017, 04:17:20, download attachment tst.zip
(no subject) (by whitequark)
@Tristan, are you using the paid QCad version, with the Teigha DXF reader? That appears to have a bug; every other CAD reads SolveSpace's files correctly, and the free QCad version also does.

@Oliver, yes, the export format was changed since version 2.2 to fix another bug (where export of 3D Wireframe was unusable). In 2.2 the LWPOLYLINE entity was used, in 2.3+, POLYLINE is used. In any compliant reader this should make no difference.

What exactly is "not expected" here? You've said that the files are readable.
Mon Feb 6 2017, 04:55:47
(no subject) (by Oliver)
The file untitled.dxf you posted yesterday was readable, but I can't reproduce it with 2.3~59d40128.

I attached a zip file in my previous posting: I see no sketch lines in the dxf.
Mon Feb 6 2017, 09:35:16
(no subject) (by Tristan)
Hello,

QCAD : 3.16.4.0 (3.16.4)

Yes, I was using QCAD with the Teigha DXF reader. After reverting to the free version options, an exported SolveSpace 2.3new dxf was read correctly. Apologies, I was unaware of this distinction.

With https://a360.autodesk.com/viewer/, my dxf from 2.2 loads, but my dxf from 2.3new does not. I have attached the files I used.

Finally, thank you for SolveSpace. It is a joy to use.

kind regards and thanks,
Tristan
Mon Feb 6 2017, 10:01:54, download attachment files.zip
DXF Export Status? (by Jonathan)
I'm also trying to do a simple 2D DXF export. This works flawlessly in V2.0, but is broken for us in every build after that. We're using the windows builds on W10-64bit.

To test, draw a rectangle, dimension 2 sides and export 2D dxf. I'm using https://a360.autodesk.com/viewer/ and Solidworks 2012 e-drawings to test.

I've tried the build above (https://ci.appveyor.com/api/bu...2Fsrc%2FDebug%2Fsolvespace.exe) to no avail. The sample files (attached) are from that version.

I don't see this as an issue on the github issues page, so I'm posting here to see if anyone else is experiencing this.
Tue Mar 7 2017, 10:53:58, download attachment rectangle.zip
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2018 SolveSpace contributors. Most recent update Nov 22 2018.