Activate/Deactivate View on Sheet

Now i found some threads about this topic and i tested the method “RequestViewChange()”.

ezgif-7-140cc7be11

This works and opens the selected view.
I tried if this also works for a sheet, but it doesnt. So it does’t help for my problem.

But in the information to this method i found something interesting:

Remarks

This method requests to change the active view by posting a message asynchronously. Unlike setting the ActiveView property, this will not make the change in active view immediately. Instead the request will be posted to occur when control returns to Revit from the API context. This method is permitted to change the active view from the Idling event or an ExternalEvent callback.

So there should be a “set active view” method and it should even work immideatly!

1 Like