Cannot link .NET code to Autocad 2014.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I had a Visual Basic .NET 2013 code, which connected to Autocad 2008 32 bit, and worked flawlessly.
But when I try to compile it in Visual Basic 2015, connecting to Autocad 2014 64 bit, it does not compile.
I removed COM references, and tried to add the references to "Autocad 2014 Type Library" and "Autocad/ObjectDBX Common 19 Type Library", I have many different choices, which seem to be related to different languages (Why different languages? I only use English).
Anyways, I choose the ones whose files end in *enu.tlb, because I guess those are for English.
When I choose one, two are selected.
But after that, I cannot compile. The line "Imports Autodesk.AutoCAD.Interop.Common" gives me this error:
If I try to add Autocad Namespace
I still get the error 'Autodesk.AutoCAD.Interop.AcadApplication' is not defined.
But if I also add AXDBLib namespace, then I get errors like 'AcadLWPolyline' is ambiguous, imported from the namespaces or types 'AXDBLib, AutoCAD'.
I'm desperate. I no more know how to link my code to Autocad. What should I do?