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 ViewportStandard.SetCameraView() method |
Was renamed to SetView() |
| 2 |
Missing Viewport.Entities.ChordalError property |
Removed, now it's adjusted automatically. If you want to force your specific tolerance use the Viewport.Entities.RegenAll(tol) |
| 3 |
Missing devDept.Eyeshot.Standard namespace |
Renamed to Entities |
| 4 |
Missing Viewport.UnitsMode |
Renamed to Units |
| 5 |
Missing Viewport.Edge.ColorMode property |
Renamed to ColorMethod |
| 6 |
Missing devDept.Eyeshot.Geometry namespace |
Renamed to devDept.Geometry |
| 7 |
New parameter for ViewportStandard.ScreenToWorld() method |
Now the returned point is an out parameter and the method returns true if the conversion succeed |
| 8 |
Missing Mesh.EdgeStyleMode property |
Renamed to EdgeStyle |
| 9 |
Missing enum viewportDisplayType.ShadedAndEdges |
Renamed to Rendered |
| 10 |
Missing enum viewportDisplayType.ShadedAndWireframe |
Now use Shaded and you should get the same effect |
| 11 |
Missing enum Mesh.edgeStyleType |
Moved to devDept.Eyeshot namespace |
| 12 |
Missing enum Mesh.normalAveragingType |
Moved to devDept.Eyeshot namespace |
| 13 |
Missing viewportDisplayType.ShadedAndEdges enum value |
Replaced by Rendered. This new value renders all material properties like ambient, diffuse, specular, shininess and texture. Materials can be defined in many ways:
- For meshes using a meshNature as RichPlain or RichSmooth passing the material index to the triangle constructor
- For generic entities (including plain/smooth meshes) using Entity.MaterialMethod to byLayer and properly editing the layer material
- For generic entities (including plain/smooth meshes) using Entity.MaterialMethod to byEntity and properly editing the entity material
|
| 14 |
Missing Color parameter in all entities constructors |
Now you can specify the entity layer and color in the Viewport.Entities.Add() and Viewport.Entities.AddRange() methods. The entity color is defined according to the Entity.ColorMethod switch. |
| 15 |
Missing RichMesh class |
Now the Mesh class covers all types of meshes of version 2.x. See details here. |
| 16 |
Type change for Mesh.MakeFace() method parameters outerLoop and innerLoops |
Now only entities that inplement the ICurve interface can be added, so please change your array type from Entity[] to ICurve[] |
| 17 |
New parameter for Mesh.MakeFace() method checkDir |
Now if you are sure of the loop direction (outer = clockwise, inners counter-clockwise) you can set checkDir to false and improve speed, use true otherwise |
| 18 |
Missing VertexIndices struct |
Renamed to IndexTriangle and type converted to class |
| 19 |
Missing Entity.Thickness property |
Renamed to LineWeight and to be used in conjunction of Entity.LineWeightMethod. For Point entities use the Size property. For PointCloud entities use the PointSize property. |
| 20 |
Missing ViewportProfessional.SortEntities property |
Removed. Not needed any more. |
| 21 |
Missing Mesh.TwoPassRendering property |
Removed. Not needed any more. |
| 22 |
Missing Viewport.Edge property |
Renamed to Edges. |
| 23 |
Missing Point2D parameter in the ViewportSolid.Extrude() and Revolve() methods |
Now all the entities (including Point) feature a sketch plane constructor. This mean that you can create a 3D point by a a sketch plane and XY coordinates. In this way you can define profiles in the same way as Eyeshot version 2.x |
| 24 |
Missing sketch plane parameter in the ViewportSolid.Extrude() and Revolve() methods |
Now all the entities feature a sketch plane constructor. This mean that you can create a 3D line by a sketch plane and XY coordinates. In this way you can define profiles in the same way as Eyeshot version 2.x |
| 25 |
No more events in the Windows Event Log |
Notifications to the Windows Event Log was completely abandoned. Now the Viewport. GraphicalIssues property reports all the graphics related issue as a StringBuilder class. |
| 26 |
Missing Utility.Distance() method |
Replaced by Point3D.Distance() |
| 27 |
Missing meshEdgeStyleType.All enum |
Renamed to None |
| 28 |
Missing backFaceColorType enum |
Renamed to backfaceColorMethodType |
| 29 |
Missing LabelBase class |
Renamed to Label |
| 30 |
Missing Utility.IntersectRayTriangle() method |
Renamed to SegmentTriangleIntersection() |