IExportContext Memory Issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are using ExportContext APIs to export geometry from large Revit model with multiple linked documents from Revit. We are running into cases where the memory usage grows throughout the process without going down. For example in one case, after opening the model the (Revit)process uses around 30GB of memory and by the time the export is finished, it's up to around 70GB. I have checked the direct memory usage of the addin, and it's nowhere close to that amount. So it seems like Revit is loading objects to memory without removing them. Would it be possible that our addin causing Revit to keep native objects on memory longer than what it should?
If yes, what are the objects that are safe to keep a reference to without causing memory issues? Should we in general avoid referencing Revit API classes on heap?