Blog


Learn about industry trends, news and how-tos from our product experts.

3D Graphics

Create points with a different shape

Tired of square Point entities? Here there are a few tricks to build points with the shape you want.   First solution: using ImageOnly Label An easy solution could be using an ImageOnly label with a semi-transparent image: Bitmap bmp1 = new Bitmap(@"pointImage.png"); int halfW = bmp1.Size.Width / 2…

by Alberto Bencivenni | January 18, 2019 | Share

3D Graphics

Zoom invariant / Position Invariant entity

 Non-maintained solution The proposed solution is not natively supported and may not work in all scenarios and versions. Entity To create a zoom invariant entity, meaning an entity that stays the same size on screen regardless of the camera position and zoom, you can use the following mesh-deriv…

by Matteo Librenti | January 18, 2019 | Share

3D Graphics

Turbo Mode

Eyeshot 2024 Update This feature has been retired in favor of the Minimum Frame Rate one. In Eyeshot version 12 we introduced a simplified representation of the scene that allows smooth Zoom/Pan/Rotate dynamic movements. This simplified representation is used only during dynamic movements (betwee…

by Alberto Bencivenni | January 11, 2019 | Share

3D Graphics

Transparency explained

To make the entity color semi-transparent you need simply to set its color Alpha component to a value lower than 255. The entity color depends on two factors: Color method (byEntity, byLayer, byParent) Viewport display mode (Shaded, Rendered) If you are using Rendered display mode, for example, t…

by Alberto Bencivenni | January 09, 2019 | Share

Miscellaneous

Geometry Import/Export

Import Supposing you want to import an OBJ file (all the import methods follow the same scheme) you need the ReadOBJ class. This class gives you full control over all the imported items (entities, blocks, layers, materials, etc.) before adding them to the scene. During file import, you can also con…

by Giulia Martini | January 08, 2019 | Share

Miscellaneous

Reading DWG/DXF

From Eyeshot 2023, two new managed classes can be used to import DWG/DXF files: ReadDWG and ReadDXF. Dealing with DWG/DXF files in Eyeshot requires several additional steps compared to other standard CAD file formats. As all professional CAD systems do, Eyeshot relies on Open Design Alliance for …

by Giulia Martini | January 08, 2019 | Share

Miscellaneous

Eyeshot file format thumbnail handler

You can extract the thumbnail icon from the Eyeshot proprietary file format with the below code Bitmap thumb = UtilityEx.ConvertBytesToImage(new ReadFile(fileName, true).GetThumbnail()); For example, you can use it to create your own shell thumbnail providers as explained in this codeproject tutori…

by Marcello Stagni | April 23, 2018 | Share

Miscellaneous

Eyeshot Proprietary File Format

Eyeshot 11 introduces a new proprietary file format that is versioned. It provides options to save geometry only, tessellation only, or both, allowing users to balance file size and loading speed according to their needs. Additionally, the file format supports entity types extension and file compre…

by Marcello Stagni | April 19, 2018 | Share

3D Graphics

Changing edge color for a single entity

The following derived Mesh class demonstrates how to change edge color for a single entity. class MyMesh : Mesh { public Color EdgeColor = Color.Empty; public MyMesh(Mesh another, Color edgeColor) : base(another) { EdgeColor = edgeColor; } protected override void DrawE…

by Alberto Bencivenni | November 24, 2017 | Share

Miscellaneous

Eyeshot issues with Telerik controls

Issue 1: Docking control When using Eyeshot control inside a Telerik docking control, the Eyeshot control disappears due to a dispose call. This behavior is time issue due to the built-in animation of the ToolWindow. Basically, when you docked, a Pane animation is triggered, Close event of the wind…

by Marcello Stagni | October 05, 2017 | Share