Blog


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

Miscellaneous

Bitness agnostic ReadDWG 🧙

The following source code sample demonstrates how to load DWG/DXF files from a .NET application compiled against AnyCPU. It includes the operating system bitness detection, dynamic loading of the Eyeshot x86 or x64 DLL from a separate folder and the instantiation of the ReadAutodesk class using reflection.  Sample: BitnessAgnosticReadDWG_WinForms_v2020.zi…

by Giulia Martini | March 24, 2020 | Share

Announcement

Eyeshot 2020.1 Build 167

This build includes only last-minute bug fixing. To learn more about this update, please check the Changelog.

February 19, 2020 | Share

Announcement

Eyeshot 2020 Released 🍹

Bologna, Italy — February 3, 2020. devDept Software S.r.l., leading provider of software development tools to the engineering industry, today announces the release of Eyeshot 2020, the native CAD control for .NET Framework. New Features ReadGCode class and a new entity called Toolpath (Screenshot) Billboard drawing for Text entities defined inside a Block…

February 03, 2020 | Share

Miscellaneous

Eyeshot WPF multitouch

Starting from Eyeshot 2020 WPF, the handler for touch gestures is the native one.In this way, we can avoid disabling the RealTimeStylus support from the application Window by default. On the other hand, in order to manage multitouch in an efficient way*, you can still use WM TOUCH events just setting  model1.MultiTouch.UseWindowsMessages = true in the MainWindow co…

by Marcello Stagni | January 08, 2020 | Share

Miscellaneous

WM TOUCH: Enable multitouch on Eyeshot WPF control when added programmatically

For the Eyeshot 2020 WPF control,  when the ImmediateMode is not activated but the property model1.MultiTouch.UseWindowsMessages is set to true and you need to add the Eyeshot control programmatically, you need the below code in the main window constructor to make it work. public MainWindow() { InitializeComponent(); devDept.Eyeshot.Environment.DisableWpfTabl…

by Marcello Stagni | January 08, 2020 | Share

Miscellaneous

WM TOUCH: Enable multitouch for the other WPF controls

For the Eyeshot 2020 WPF control, in order to manage multitouch in an efficient way when the ImmediateMode is not activated, you can set model1.MultiTouch.UseWindowsMessages = true in the MainWindow constructor.As a side-effect, this disables the RealTimeStylus support from the application Window causing the multitouch gestures to no longer work on WPF cont…

by Marcello Stagni | January 08, 2020 | Share

3D Graphics

3D scene visual testing

Eyeshot contains a utility to perform an accurate check between images.The general idea is very simple: a pixel-by-pixel comparison. The method devDept.ImageComparison.CompareImages() compares 2 bitmaps and returns an image showing the different pixels and the mismatch percentage between them.   Expected image Current image Differences Code snippet: Bitmap…

by Marcello Stagni | January 07, 2020 | Share

Miscellaneous

How we test Eyeshot using the UI Automation

Starting with Eyeshot 2020, we introduced a series of interactive tests to cover particular scenarios that cannot be tested with the standard unit testing approach.We tried some commercial solutions, but we found out that they were congenial for testing a full application, not a single and complex component like Eyeshot.We need something more flexible and c…

by Marcello Stagni | December 20, 2019 | Share

3D Graphics

Text entity with background mask

The proposed solution is not natively supported and may not work in all scenarios and versions. Here's an example on how to derive the Text class in order to draw a colored background mask behind the text.  Here is the code:  class MyText : devDept.Eyeshot.Entities.Text { public Color MaskColor = System.Drawing.Color.Red; // Enables the halo effect for selection, // comment thi…

by Antonio Spagnuolo | December 13, 2019 | Share

Miscellaneous

Entity.AutodeskProperties

With Eyeshot2020 we introduced a new property of type AutodeskMiscProperties of the Entity class called AutdoeskProperties. This class gathers inside it some miscellaneous Autodesk properties such as curve thickness, the thickness extrusion direction, and the entity XData.  Now to read and write the entity XData you need to proceed as follow:  Line line = new…

by Antonio Spagnuolo | December 13, 2019 | Share