Unable to Double Click a VIEWPORT to Make it Active

Issue:

We are unable to double-click a viewport to make it active.

Cause:

This can happen when using MAXACTVP and having it set to a number smaller than the number of viewports within the drawing.  

Solution:

There are a couple of ways to work around this problem.

  • Toggle the properties of the viewport off/on manually.
  • Create a toolbar button to turn it on.

Toggling the ViewPort:

Select the Viewport and bring up the Properties Palette.

Under the “Misc” section set the On value to No or Yes, you may need to go back and forth a couple of times.

Done.

Using a Toolbar button to Toggle the setting On.

Autodesk has an article on how to add a new toolbar button:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Adding-new-toolbar-buttons.html

I will use the following settings for my new toolbar button.

  • Name:  ViewportOn
  • Description:  Turns on the viewport
  • Macro :  ^C^C_mview on \;

For the toolbar image, click the one you want from the list or you can make your own.

Click Apply!

Now to get the button onto the Viewport toolbar.

Drag & drop the new icon onto the Viewports toolbar (or toolbar of your choice).

Click Apply & Ok.

Make sure you turn on the Viewport toolbar and now when you click the new toolbar button, select the viewport you want turned on.

When I click the lightbulb toolbar button I created, the command line now shows:

I click on the viewport.

And there it is!

This one will allow you to click the viewport then the toolbar button.

(below code provided by Ryan Wunderlich)

^C^C_MVIEW;on;_p;;

Lastly, you could reset MAXACTVP to a higher number.  The default is 64.

Note: this may affect performance.

About the Author

Jeff Lotan

Sr. Technical Support Specialist - Licensing<br><br>I am charged with mentoring and training team members in the proper use our systems and tools, documenting NSC processes, and providing feedback and ideas to the management team towards improving the customer experience. I am also a major contributor to our technical support blog and internal knowledge base.

Follow on Linkedin More Content by Jeff Lotan
Previous Video
Interoperability between Inventor and AutoCAD Electrical
Interoperability between Inventor and AutoCAD Electrical

Explore the interoperability between Inventor and AutoCAD Electrical.

Next Article
How to clean up the Autodesk ADSKFLEX_LICENSE_FILE setting in the Windows Registry
How to clean up the Autodesk ADSKFLEX_LICENSE_FILE setting in the Windows Registry

Why would you want to clean up the registry?  Well, because sometimes it prevents us from obtaining a netwo...