Home
Home
| Support | Store | Contact Us
   
   
Tickets
Submit a Ticket
View your Tickets
License Profile
Resources
Documentation
FAQ
Change Log
Other
Contact Support
Migrating from Eyeshot version 1.3 to 2.0
Created May 27, 2008 / Updated September 17, 2008

 

Recommended process to successfully plugin the new DLL

  1. Make a backup copy of your project
  2. Open the project in Visual Studio
  3. Add the new Eyeshot DLL to the project references
  4. Build the project
  5. Remove all the code lines generating errors in [form_name].Designer.cs/.vb file (you'll adjust these settings directly in the designer)
  6. Follow the instructions below and (the ones you find in the change log) to fix the rest of your code

 

Important note regarding transformations:
C#

You previously did:

Transformation t = new Transformation();

t.Translate(10, 0, 0);
t.Rotate(30, Vector3D.yAxis); // t now contains a combination of translation and rotation

Point3D p = new (10, 20, 30);

t.Apply(ref p); // transforms the point p

What you need to do in Eyeshot 2.0:

Translation tra = new Translation(10, 0, 0);

Rotation rot = new Rotation(Math.PI/6, Vector3D.yAxis); // angle in radians

Transformation combined = tra * rot; // combines the two transformations (order matters)

Point3D pt = new Point3D(10, 20, 30);

Point3D newPt = combined * p; // transforms the point pt


Visual Basic

You previously did:

Dim t As Transformation = New Transformation()

t.Translate(10, 0, 0)
t.Rotate(30, Vector3D.yAxis) ' t now contains a combination of translation and rotation

Dim p As Point3D = New Point3D(10, 20, 30)

t.Apply(p) ' transforms the point p

What you need to do in Eyeshot 2.0:

Dim tra As Translation = New Translation(10, 0, 0)

Dim rot As Rotation = New Rotation(Math.PI/6, Vector3D.AxisY) ' angle in radians

Dim combined As Transformation = tra * rot ' combines the two transformations (order matters)

Dim pt As Point3D = New Point3D(10, 20, 30)

Dim newPt As Point3D = combined * p ' transforms the point pt

 

The following table summarizes the most probable compilation errors/issues you will encounter plugging-in the new Eyeshot DLL in your application.

# Issue Fix
1 Missing Viewport.Action property Was renamed to ActionMode
2 Missing Viewport.actionType enum Was renamed to viewportActionType
3 Missing Viewport.ResetZoom() / ResetPan() / ResetRotate() methods Dropped, see Viewport.Camera property
4 Missing ViewportStandard.IsoView() / FrontView() / SideView() / TopView() methods Renamed to SetCameraView()
5 Missing Viewport.RescaleModel() method Dropped, not needed anymore. Try using ViewportStandard.ZoomFit() or changing the Viewport.Camera.Distance value.
6 Missing Viewport.ShadingMode property Renamed to Viewport.DisplayMode
7 Missing Viewport.shadingType enum Renamed to viewportDisplayType
8 Missing shadingType.Orientation enum Dropped, see Viewport.Backface.ColorMode
9 Missing Viewport.BackFaceCulling property Dropped, see Viewport.Backface.ColorMode
10 Missing Viewport.ProjectionMode property Moved in Viewport.Camera property
11 Missing Viewport.projectionType enumy Renamed to cameraProjectionType
12 Missing Viewport.ShowOrigin property See Viewport.OriginSymbol.Visible property
13 Missing Entity.Move() method Renamed to Translate()
14 Missing Viewport.CameraToModelDistance property See the Viewport.Camera.Distance property
15 Missing Viewport.FieldOfViewAngle property See the Viewport.Camera.FocalLength property
16 Missing Viewport.EdgeThickness property See the Viewport.Camera.Edge.Thickness property
17 Missing Viewport.PointSize property See the Standard.Point.Thickness property
18 Missing Viewport.ShowControl property See the Nurbs.Curve.ShowControl and Nurbs.Surface.ShowControl properties
19 Missing Entity.Move() / MoveX() / MoveY() / MoveZ() methods Replaced by Translate()
20 Missing Viewport.Zoom() / Pan() / Rotate() methods Renamed to ZoomCamera() / PanCamera() / RotateCamera()
21 Missing Viewport.ZoomFactor() method See Viewport.Camera.ZoomFactor property
22 Missing Vector3D.xAxis / yAxis / zAxis properties Renamed to Vector3D.AxisX / AxisY / AxisZ
23 Missing Transformation.Reset() method Transformation logic is completely changed (see box above) and this method is not needed any more. Its replacement would be Identity().
24 Different Mesh.MakeFace() parameters Now all overrides accept a Plane instead of normal or xAxis and yAxis parameters
25 Missing Viewport.TextEntityFont property Was moved to Viewport.Entities.Font
26 Missing ViewportStandard.ZoomFitMargin property Dropped
27 Missing Viewport.ModelWidth, ModelDepth, ModelHeight Dropped, they can now be obtained using the Viewport.Entities.BoxMin and BoxMax properties
28 Empty entity array using ViewportProfessional.ReadAutodesk(), ReadBinarySTL(), ReadOBJ() and ViewportNurbs.ReadIGES() These functions now return a collection of entities or a single entity. You need therefore to add to the master entity array the returned object.
29 Missing Viewport.ShowExtents property See Viewport.BoundingBox.Visible property
30 Missing Texture class and Viewport.Textures collection See the Material class and Viewport.Materials collection
31 Missing parameters in MulticolorOnVerticesMesh class constructor You now need only to pass the number of vertices then use the MulticolorOnVerticesMesh.SetVertex() / GetVertex() methods to access vertices data
32 Missing parameters in MulticolorPointCloud class constructor You now need only to pass the number of points then use the MulticolorPointCloud.SetPoint() / GetPoint() methods to access point data
33 Missing Geometry.Matrix class Dropped. If you were using some of its methods, just ask us the source code.
     
     
     
     
     

 

Don't find your issue listed here?
Contact immediately our technical support at: support@devdept.com
   
  Copyright © 2008 devDept Software. All rights reserved.