Register | Log in

Multi-viewport Support

The Viewport class is not derived from Windows.Forms.Control anymore and represents a drawing area inside the new SingleViewportLayout control class. The Eyeshot control class is now ViewportLayout.

These drawing areas are managed by ViewportLayout.Viewports collection. Many properties were moved at Viewport class level. For example to show a top view in one Viewport and a front view in the other you can use singleViewportLayout1.Viewports[0].SetView(viewType.Top) and singleViewportLayout1.Viewports[1].SetView(viewType.Front)

Legacy SingleViewportLayout.SetView() method was maintained and operates on the active Viewport. The index of the active viewport can be obtanied from ViewportLayout.ActiveViewport property.

Single, Three and FourViewportLayout are built-in viewport layouts but you are free to create your custom one as explained in the CustomViewportLayout source code sample.


Migration Guide

We recommend to take a full backup of your project(s) including your existing Eyeshot 4.x DLL. To migrate your Eyeshot 4.x based application to Eyeshot 5.0, follow the steps below:

  1. Replace the Eyeshot 4.x DLL with the Eyeshot 5.0 one in your project references
  2. Rename all Viewport as SingleViewportLayout in the designer file of your project
  3. Open the Form hosting the Eyeshot control
  4. Select the Eyeshot control
  5. Look for the Viewports collection property in the Properties window
  6. Add a viewport to the Viewports collection
  7. Save and close the designer
  8. Try to compile

Please note that:


Eyeshot 4.x Visual Studio Toolbox icons

It is possible that the Eyeshot 4.x Visual Studio Toolbox icons are not removed during uninstallation. In this case, simply right-click the "Eyeshot Ultimate 4.1" Toolbox tab and select "Delete Tab".