Geometry extraction from revit

Hi. I am trying to Extract doors,windows and walls from revit using dynamo. That’s simple and have done it. Is there a way to generate an IFC file for the extracted geometry alone using dynamo? Thanks in advance