DXF export, arcs appear as bsplines

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
freedman
Veteran
Posts: 3478
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

DXF export, arcs appear as bsplines

Post by freedman »

Wanderfan, I wrote this:
https://forum.freecadweb.org/viewtopic.php?f=22&t=38538

I found out that arcs are turned into bsplines, is there some way to preserve the arcs in the conversion to DXF? Let me know if need a sample.
Thank you
freedman
Veteran
Posts: 3478
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: DXF export, arcs appear as bsplines

Post by freedman »

After more testing it appears that it is view related. I have been using this post as a reference:
https://forum.freecadweb.org/viewtopic.php?f=35&t=27527

There was talk in that post about a view issue, was there some proof to view related issues with export?
Thanks
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: DXF export, arcs appear as bsplines

Post by wandererfan »

freedman wrote: Thu Aug 15, 2019 10:10 pm I found out that arcs are turned into bsplines, is there some way to preserve the arcs in the conversion to DXF? Let me know if need a sample.
Without looking, my guess would be that the arcs are turned into splines in the HLR routines, not the conversion to DXF.

OCC loves splines. It even returns splines in place of straight lines sometimes.

There is some code that tries to guess if a given spline can be represented as a line or a circle for drawing and dimensioning. Might be able to use this in the exporter.

Not sure when I'll get to this though.
Post Reply