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.
Ö.
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.
Ö.
(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.
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.
(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.
Ö.
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.
Ö.
(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.
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.
Post a reply to this comment: