- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all,
I need to set ActiveView in Idling event handler. As per API documentation, it isn't an invalid operation to set ActiveView (no open transactions; IsModifiable is ok; IsReadOnly is ok; No pre-action events around).
However, setting ActiveView throws InvalidOperationException (msg: "Setting active view is temporarily disabled").
Closest explanation i could reach to is Jeremy's casual comment ("The system may be busy with something else.") in one of his blog. In a sense that is the case - System is 'busy' because Idling event is being processed at the moment.
However, i wonder, if that is the real reason or a real limitation in this case; - for the system is also busy when IExternalCommand.Execute() is being processed (in which case setting ActiveView functions perfectly).
Looking forward to expert comments on whether Setting ActiveView is indeed invalid in Idling under any circumstances and if there is a way around it.
If I've missed any detail that might be of interest, please let me know.
Best regards,
Kinjal.
Fullstack developer @ Dwaravati
Delivering high quality programmatic boosts for your already beautiful Revit

Solved! Go to Solution.