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.zip
Previous versions of this article: Eyeshot11, Eyeshot 10, Eyeshot 9, Eyeshot 8
Comments
This dxf import works fine on all computers for me except one... and I can not understand why it does not work on one.
The crash occurs on "constructor.Invoke(new object[] {@"app8.dwg", null, false, false, false});"
Is there anyway to understand what can cause the crash inside of the constructor?
It looks like we need C++ redist v2019 for Eyeshot v2021. After installing this, it works as expected
Yes, from Eyeshot 2021 at least the C++ 2015 Redistributable version is required
Please sign in to leave a comment.