.Net DLL Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to build an application that will write to the properties of Autodesk files. I have the iProperties for inventor files working and now I'm trying to do AutoCAD. I've found many examples of code but can't test anything because of my problems. I've seen two places to find the dll's, one is from the application directory c:\ProgFiles\AutoDesk\AutoCAD xxxx. Others are saying to download and pull from ObjectARX 2013. I get strange errors when I try and use these dll's.
If I use ObjectARX I get this... "Common Language Runtime detected an invalid program."
If I use the application directory I get this... "Could not load file or assembly 'accoremgd,..."
I'll be trying to do something like the following and it fails every time
Autodesk.AutoCAD.ApplicationServices.Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Here are the assemblies that I'm working with...
AcCoreMgd.dll
AcDbMgd.dll
AcMgd.dll
I'm clearly missing something here. Please help.
Thank you in advance.