//Create an Instance of the IFC Export Class
IFCExportOptions IFCExportOptions = new IFCExportOptions();
//Apply the IFC Export Setting (Those are equivalent to the Export Setting in the IFC Export User Interface)
myIFCExportConfiguration.VisibleElementsOfCurrentView = true;
//Create an instance of the IFC Export Configuration Class
BIM.IFC.Export.UI.IFCExportConfiguration myIFCExportConfiguration = BIM.IFC.Export.UI.IFCExportConfiguration.CreateDefaultConfiguration();
//Define the a 3d view to export
ElementId ExportViewId = null;
//Pass the setting of the myIFCExportConfiguration to the IFCExportOptions
myIFCExportConfiguration.UpdateOptions(IFCExportOptions, ExportViewId);
//Define the output Directory for the IFC Export
string Directory = @"c:\"
//Process the IFC Export
doc.Export(Directory, doc, IFCExportOptions);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
//Define Document
Document doc;
//Create an Instance of the IFC Export Class
IFCExportOptions IFCExportOptions = new IFCExportOptions();
//Apply the IFC Export Setting (Those are equivalent to the Export Setting in the IFC Export User Interface)
myIFCExportConfiguration.VisibleElementsOfCurrentView = true;
//Create an instance of the IFC Export Configuration Class
BIM.IFC.Export.UI.IFCExportConfiguration myIFCExportConfiguration = BIM.IFC.Export.UI.IFCExportConfiguration.CreateDefaultConfiguration();
//Define the a 3d view to export
ElementId ExportViewId = null;
//Pass the setting of the myIFCExportConfiguration to the IFCExportOptions
myIFCExportConfiguration.UpdateOptions(IFCExportOptions, ExportViewId);
//Define the output Directory for the IFC Export
string Directory = @"c:\"
//Process the IFC Export
doc.Export(Directory, doc, IFCExportOptions);