
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am using Revit 2019 SDK and working with C#. I have read all existing forum topics related to OpenIFCDocument API and external blogs/websites referencing this API.
I have the following task:
1. manually start Revit and create a new empty project
2. create an Addin which loads an IFC file from local disk
To accomplish the above, I created an Addin and implemented the IExternalCommand interface. I can see and use my Addin in Revit (TaskDialog.Show works just fine).
My problem is the following:
When I call commandData.Application.Application.OpenIFCDocument("C:\\test.ifc", ifcImportOptions), Revit starts to load the IFC (I use IFCImportAction.Open), shows the loading progress bar, takes a minute or so to load, and when it is done loading, the model is not visible.
What am I missing here? Why is the model not visible (if I open the same model manually in Revit via IFC Open UI button, model is loaded ok and is visible)?
I'd appreciate any hints which could help me resolve this.
Thank you.
Solved! Go to Solution.