Author Topic: DXF Reading  (Read 2142 times)

0 Members and 1 Guest are viewing this topic.

GumbyCAD

  • Newt
  • Posts: 84
DXF Reading
« on: May 30, 2015, 01:13:33 AM »
Does anyone know if you can read in a DXF into AutoCAD and get the Polygons that are returned from the DXF?

If that makes sense?

huiz

  • Swamp Rat
  • Posts: 917
  • Certified Prof C3D
Re: DXF Reading
« Reply #1 on: May 30, 2015, 09:25:17 AM »
You can create a temporary database, import the DXF in that (Database.DxfIn()), iterate through the ObjectIds and get the Polygons and clone them. Or you can insert the DXF in the current Database (Database.Insert()) and iterate through the entities to remove everything that is not a Polygon.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

GumbyCAD

  • Newt
  • Posts: 84
Re: DXF Reading
« Reply #2 on: May 30, 2015, 09:50:26 PM »
Thanks Ill try that

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: DXF Reading
« Reply #3 on: June 01, 2015, 08:02:57 AM »
DXFs are usually ASCII and can therefore be read fairly easily.

http://netdxf.codeplex.com/
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org