Message 1 of 2
Return Focus to View for Selection

Not applicable
08-07-2019
08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a plugin using CefSharp on Revit 2019.2.
I created a button that on-click should select an element from the 3DView that is open and then depending on that object continue executing some internal validations.
My issue is that the prompt for selecting the element appears but I'm not able to select anything unless I click on the actual view.
After I click inside the view I'm able to select items and the correct prompt status messages appear.
I tried a few different things....
- I executed the RequestViewChange in the Iddling Event and it didn't change anything
- I executed the RequestViewChange in the function before doing the selection the result was the same as before
- I executed the RequestViewChange in the RequestHandler before calling my internal function and it did nothing
- I tried changing the ActiveView (didn't expect it to work) and threw an InvalidOperationException
Isn't there a function to just change the focus to the view I already have active?
I've been struggling with this for the last couple of days and don't find a solution.
Thanks,
Julio