Message 1 of 5
InvalidOperation Exception
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have a massing file with the 3D view open and active. The file has adaptive components in the file. I'm running into an error when I run the line of code below:
IList<Reference> Refs = P_UIDoc.Selection.PickObjects(Autodesk.Revit.UI.Selection.ObjectType.Element, " Select Objects");
The error I get is: Invalid Operation Exception. When I rotate the model in the 3D view and run the command again it works fine. I'm running Revit 2016, VS 2013