Active Member
Posts: 7
Registered: ‎05-01-2009
Message 1 of 2 (280 Views)

How to Determine Focus Change of Floating Viewports

280 Views, 1 Replies
11-22-2010 08:15 AM

I'm looking for an events that is fired when a user switches between different floating viewports.  I would like to update a list of viewport names when the user switches to a different viewport.  Does anyone know how to determine when the user changes focus to a different viewport?

Valued Mentor
Posts: 331
Registered: ‎05-11-2006
Message 2 of 2 (263 Views)

Re: How to Determine Focus Change of Floating Viewports

11-23-2010 03:32 AM in reply to: rhinton

You can monitor the 'SystemVariableChanged' event of the Application object and look for the the 'CVPORT' variable changing to a value greater than 1. See the attached C# sample code...

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.