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.