discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Importing a DXF containing arcs and circles

JB
Jordan Brown
Mon, Aug 14, 2023 4:26 PM

On 8/13/2023 2:02 AM, jpm2nice-tech--- via Discuss wrote:

If I am right, an imported DXF cannot contain arcs or circles. This is
a severe limitation. Is there any mean to get around this problem? Or
to ask the developpers to make an improvement?

I don't have any good tools for generating DXFs, such that I could be
confident that they contained arcs or circles, but the OpenSCAD source
certainly appears to have support for arcs and circles.

https://github.com/openscad/openscad/blob/7322a5df7728ea24e3f01bb974c877dbbca65c63/src/io/DxfData.cc#L191

On 8/13/2023 2:02 AM, jpm2nice-tech--- via Discuss wrote: > > If I am right, an imported DXF cannot contain arcs or circles. This is > a severe limitation. Is there any mean to get around this problem? Or > to ask the developpers to make an improvement? > I don't have any good tools for generating DXFs, such that I could be confident that they contained arcs or circles, but the OpenSCAD source certainly appears to have support for arcs and circles. https://github.com/openscad/openscad/blob/7322a5df7728ea24e3f01bb974c877dbbca65c63/src/io/DxfData.cc#L191
JT
jpm2nice-tech@yahoo.fr
Thu, Aug 17, 2023 8:44 AM

Would you please give me more information on the subject? Github remains very mysterious to me. Do I have to load some library or else?

(Otherwise, that limitation is mentionned somewhere in the documentation, I dont remember where).

RV

Would you please give me more information on the subject? Github remains very mysterious to me. Do I have to load some library or else? (Otherwise, that limitation is mentionned somewhere in the documentation, I dont remember where). RV
C
charlie@carols62.com
Thu, Aug 17, 2023 4:29 PM

For some reason I cannot open the github link, but OpenScad does support DXF arcs and circles.  I am using AutoCAD to create the DXF files.

For some reason I cannot open the github link, but OpenScad does support DXF arcs and circles. I am using AutoCAD to create the DXF files.
JT
jpm2nice-tech@yahoo.fr
Thu, Aug 17, 2023 6:46 PM

I also use AutoCAD to create my DXFs. But during importation, the arcs are converted to segments.

Then I read in the documentation (sorry, I forgot where) that this isreally a limitation.

???

I also use AutoCAD to create my DXFs. But during importation, the arcs are converted to segments. Then I read in the documentation (sorry, I forgot where) that this isreally a limitation. ???
C
charlie@carols62.com
Thu, Aug 17, 2023 10:04 PM

I have never had a problem importing arcs into OpenSCAD.  If you are trying to import AutoCAD POLYLINEs that contain arcs, then yes, they are converted to straight lines.  If you EXPLODE the POLYLINEs then they import correctly. I am using ancient versions of OpenSCAD, version 2015.03-2 and AutoCAD R14.

I have never had a problem importing arcs into OpenSCAD. If you are trying to import AutoCAD POLYLINEs that contain arcs, then yes, they are converted to straight lines. If you EXPLODE the POLYLINEs then they import correctly. I am using ancient versions of OpenSCAD, version 2015.03-2 and AutoCAD R14.