I'm writing a test for a plugin that needs an active Window3D.
I add it and try to set it active with
var window = PetrelProject.ToggleWindows.Add(WellKnownWindows.Window3D);
PetrelProject.ToggleWindows.Active = window;
but PetrelProject.ToggleWindows.Active
is still null. Is there some background processing that needs to be done before the new window is actually active? How can I test code that needs an active window?
I'm using Petrel 2012.1.