SolveSpace Logo 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)

GUI 2D-view DXF export differs from corresponding CLI function (by Ozgur Cobanoglu)
Dear,

I use the following command to export:

solvespace-cli.exe export-view --view top --chord-tol 1 --output %.dxf bretzel.slvs

But the output file is way smaller (16k) compared to GUI exported one (60k) and I fail to open it in some DXF viewers but not all for some reason. I attached the files for your information.

Am I doing the right thing? What can I do to correct it?

Thanks in advance, best.

Ö.
Wed Jan 27 2021, 03:37:18, download attachment Bretzel.rar
(no subject) (by Paul)
You may want to change the --chord-tol to a smaller value. Check the export chord tolerance of the GUI program under configuration in the text window. Pass the same value to the cli.

File format compatibility can be tricky when writing software ;-) I assume your comment about opening DXF on some viewers and not others was a separate issue and not related to weather you export from the GUI or cli.
Wed Jan 27 2021, 14:13:56
(no subject) (by Ozgur Cobanoglu)
Dear Paul,

thanks for your answer; you are right, they are separate issues. I changed the chord tolerance but it did not change my situation.

I just realized that the issue is related to how the objects are saved in DXF: in GUI, all the arcs are converted to DXF POLYLINE ENTITYs but when I use the CLI, arcs go to the DXF as ARC ENTITYs, hence the file size difference and my problem.

So, now my question morphs into the following: can I convince the CLI to do the same as the GUI and send arcs -and basically everything- segmented into POLYLINE ENTITYs?

I did not see any switch to do that but I'd like to "sync" GUI and CLI behaviours.

Thanks in advance and best.

Ö.
Thu Jan 28 2021, 04:52:51
(no subject) (by Paul)
@Ozgur

There is an option in GUI cofiguration screen "export curves as piecewise linear" does checking that box change the behavior of the DXF export of arcs? Does that explain the difference? If so, I don't think there is a CLI equivalent option.
Sat Jan 30 2021, 14:43:04
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-2022 SolveSpace contributors. Most recent update June 2 2022.