Blog


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

Miscellaneous

Silent installation

A new MSI-based installer is used starting from Eyeshot 2022 and you can run a silent installation with the standard commands for MSI packages. Listed below are some command line samples: WinForms with a verbose logEyeshotFem20221271.exe /exenoui /qn /L*V log.txt ADDLOCAL=ALL REMOVE=WPF WPF with …

by Marcello Stagni | February 11, 2022 | Share

Miscellaneous

Workspace.IsBestAdapterAvailable property

When using DirectX, Eyeshot tries to get the best adapter for rendering but some laptops with dual graphics cards don't allow to do this throwing an exception during their initialization.That's because, on those machines, the best adapter (NVidia or AMD) is not a true discrete GPU - it is a co-proc…

by Alberto Bencivenni | December 13, 2021 | Share

Miscellaneous

Add to scene as single object

The following code is a sample of the main steps to insert the contents of a file inside a Block and create a BlockReference that refers to it. ReadSTEP readFile = new ReadSTEP(fileName); readFile.DoWork(); // Merge the master collections loaded from the file with the Environment ones // In case o…

by Simone Maccaferri | November 04, 2020 | Share

Miscellaneous

Multi-file and lazy loading

Eyeshot 2021 introduces a new feature that allows you to save the entire scene to multiple files using the Eyeshot proprietary file format. With this feature, you have the flexibility to work on a file representing a single component and observe its changes when loading the entire assembly (video),…

by Marcello Stagni | October 09, 2020 | Share

Miscellaneous

Eyeshot issues with Infragistics controls

Issue 1: Docking control and draw overlay If you need to customize the Eyeshot control by drawing a text in the overlay, you will get an error during docking/undocking operations with Infragistics control. To overcome this, you can use the below trick: using System.Runtime.InteropServices; class My…

by Marcello Stagni | May 26, 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 by se…

by Marcello Stagni | January 08, 2020 | Share

Miscellaneous

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

For the Eyeshot 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() { Init…

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 c…

by Marcello Stagni | January 08, 2020 | Share

Miscellaneous

Entity.AutodeskProperties

Starting from Eyeshot 2020, 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 a…

by Antonio Spagnuolo | December 13, 2019 | Share

Miscellaneous

Native vs NativeExperimental rendering in WPF

Subscribing to CompositionTarget.Rendering is sometimes useful or even needed but should be used wisely because it forces WPF to constantly render window. For this reason, starting from Eyeshot 12, we introduced the NativeExperimental renderer to stop using this event for rendering. When I should u…

by Marcello Stagni | February 27, 2019 | Share