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

How to Determine Focus Change of Floating Viewports

275 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: 330
Registered: ‎05-11-2006
Message 2 of 2 (258 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...

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community