Message 1 of 14
ACAD DLL Accessibility Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to learn VB.NET, for a program I need to create, which will send information to AutoCAD. I am using AutoCAD: Electrical 2009 (but just need to access the AutoCAD API) and Visual Studio 2003. I would consider myself very new to Visual Studio; but not to VB since I use VBA, either AutoCAD, Microsoft Office, or other programs.
Well, I thought I will sit down and do that famous Hello World program; but when trying to add the dll I get the following error:
"A Reference to 'C:\Program Files\Autodesk\Acade 2009\acdbmgd.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' or COM components can be referenced. Please make sure the file is accessible and that it is a valid assembly or COM component."
If I did not know better I would say I did not have permissions to edit these and unless our IT department has locked down all DLL files for some reason I do have write access to that directory. I am not sure what COM components is; but this file is obviously a dll, so should fall under the first classification.
I guess my question is two parts 1) what is accessibility, in relation to .NET since it is obviously not read/write access? 2) Has anyone come across a solution to this problem since VB.NET will be almost useless for me if I cannot get access to the AutoCAD libraries, both acmgd.dll and acdbmgd.dll?
Thanks.
Well, I thought I will sit down and do that famous Hello World program; but when trying to add the dll I get the following error:
"A Reference to 'C:\Program Files\Autodesk\Acade 2009\acdbmgd.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' or COM components can be referenced. Please make sure the file is accessible and that it is a valid assembly or COM component."
If I did not know better I would say I did not have permissions to edit these and unless our IT department has locked down all DLL files for some reason I do have write access to that directory. I am not sure what COM components is; but this file is obviously a dll, so should fall under the first classification.
I guess my question is two parts 1) what is accessibility, in relation to .NET since it is obviously not read/write access? 2) Has anyone come across a solution to this problem since VB.NET will be almost useless for me if I cannot get access to the AutoCAD libraries, both acmgd.dll and acdbmgd.dll?
Thanks.