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. 


Previous versions of this article: Eyeshot11Eyeshot 10Eyeshot 9, Eyeshot 8

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


  • 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.