It's always been a pain, and well still is, that most of tools in Workspace need to have the 3D Window in focus in order for them to work.
So I tried using the WINGUID, which is labeled as the 'Workspace 3D Window' in shortcuts to set a view from an object I am working on.
The below command worked in all layouts, with and without the 3D window in focus.
Code: Select all
D3DView.SetActiveCamera("", '17D544A3-3F58-436B-83E7-F8B4D7D4E7C5')