Message 1 of 4

Not applicable
06-12-2017
01:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to create a standalone console application for reading DWG file database using RealDWG.
I have referenced the DLL called "acdbmgd.dll" located in "C:\Program Files\Autodesk\RealDWG 2018".
However, when running this minimal example
using Autodesk.AutoCAD.DatabaseServices;
...
class Program { static void Main(string[] args) { using (var db = new Database(false, true)) { ... } } }
I get AccessViolationException from the expression
var db = new Database(false, true)
What could be causing this? I have read that one needs to have AutoCAD running when executing external software like this, but that does not apply when using RealDWG, right?
Best regards,
Elias Furenhed
Solved! Go to Solution.