TheSwamp

Code Red => .NET => Topic started by: GumbyCAD on May 30, 2015, 01:13:33 AM

Title: DXF Reading
Post by: GumbyCAD 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?
Title: Re: DXF Reading
Post by: huiz 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.
Title: Re: DXF Reading
Post by: GumbyCAD on May 30, 2015, 09:50:26 PM
Thanks Ill try that
Title: Re: DXF Reading
Post by: JohnK on June 01, 2015, 08:02:57 AM
DXFs are usually ASCII and can therefore be read fairly easily.

http://netdxf.codeplex.com/