TheSwamp
Code Red => .NET => Topic started 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?
-
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.
-
Thanks Ill try that
-
DXFs are usually ASCII and can therefore be read fairly easily.
http://netdxf.codeplex.com/