Message 1 of 8
does revit api support to save exported ifc fiile in memory stream programatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
// Set up IFC export options file schema
IFCExportOptions exportOptions = new IFCExportOptions();
exportOptions.FileVersion = IFCVersion.IFC4RV;
exportOptions.AddOption("StoreIFCGUID", "true");
exportOptions.AddOption("VisibleElementsOfCurrentView", "true");
exportOptions.AddOption("ExportInternalRevitPropertySets", "true");
exportOptions.AddOption("ExportIFCCommonPropertySets", "true");
exportOptions.AddOption("TessellationLevelOfDetail", "0.25");
MemoryStream ifcMemoryStream = new MemoryStream();
bool exportSuccess = doc.Export(ifcMemoryStream, revitFileName, exportOptions);
Error :" doc.Export" this particular export automatically changed ifc export to gbxmlexport
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 3: cannot convert from 'Autodesk.Revit.DB.IFCExportOptions' to 'Autodesk.Revit.DB.GBXMLExportOptions'
Error CS1503 Argument 3: cannot convert from 'Autodesk.Revit.DB.IFCExportOptions' to 'Autodesk.Revit.DB.GBXMLExportOptions'