Trouble with registering COM interop in ACAD 2007 and VS.NET

Trouble with registering COM interop in ACAD 2007 and VS.NET

Anonymous
Not applicable
622 Views
14 Replies
Message 1 of 15

Trouble with registering COM interop in ACAD 2007 and VS.NET

Anonymous
Not applicable
Hi all,

Could somebody help me I'm getting desperate...

I try to compile a Visual Studio Solution for AutoCAD2007 which we made and that compiled before. On other similar machines with the same programs (!) it compiles, but on mine there is a problem with the:
AutoCAD/ObjectDBx Common 17.0 Type Library -->> Visual Studio says under the Path column:
Also in the solution explorer there is an exclamation mark in the icon next to axdblib.dll reference.

I tried removing all references and then adding them step by step:
especially:
c:\program files\common files\autodesk shared\acax17enu.tlb
c:\program files\common files\autodesk shared\axdb17enu.tlb


Where is the problem?????
0 Likes
623 Views
14 Replies
Replies (14)
Message 2 of 15

Anonymous
Not applicable
Did you select them from the COM tab, or
are you actually selecting those files?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5515300@discussion.autodesk.com...
Hi all,

Could somebody help me I'm getting desperate...

I try to compile a Visual Studio Solution for AutoCAD2007 which we made and that compiled before. On other similar machines with the same programs (!) it compiles, but on mine there is a problem with the:
AutoCAD/ObjectDBx Common 17.0 Type Library -->> Visual Studio says under the Path column:
Also in the solution explorer there is an exclamation mark in the icon next to axdblib.dll reference.

I tried removing all references and then adding them step by step:
especially:
c:\program files\common files\autodesk shared\acax17enu.tlb
c:\program files\common files\autodesk shared\axdb17enu.tlb


Where is the problem?????
0 Likes
Message 3 of 15

Anonymous
Not applicable
I tried both. Same results
0 Likes
Message 4 of 15

Anonymous
Not applicable
i am having the same problem.

I have an application named MRPTools. It was originally compiled in AutoCAD 2006. I copied the project and removed the 2006 references, then added 2007 references, and re-built it. It worked just fine. Later, instead of managing two sets of code, i decided to Just use the 2006 project, and when i wanted to compile in 2007, i would just remove the 06 references, and then add the 07, compile the code. then remove the 07 references and add the 06 again. No big deal.

But now, i can't get add the Interop references at all !!!!!

I have tried everything, from building a completely new project, selecting the reference files themselves, physically copying the files into the project directory..... Nothing works!
This hasn't become a big deal yet, but it will, as i am constantly updating my programs for the company. We have come to rely on them very heavily, and now the people using 07 will not be able to get updates.
0 Likes
Message 5 of 15

cgay
Enthusiast
Enthusiast
You can try and Repair the AutoCAD install in the Add/Remove control panel
0 Likes
Message 6 of 15

Mikko
Advocate
Advocate
Remove / delete the offending reference and let the Visual Studio IntelliSense make the correction. Cheap and dirty worked for me. I tried to attach a screen shot of this but the site does not allow me to attach anything, doc, jpg, png etc....
0 Likes
Message 7 of 15

Anonymous
Not applicable
i don't see how intellisense can correct a reference. Please do attach a screen shot, try zipping the file and attaching it.

Thanks!.

I don't know if repairing my install will help, i guess it's the next avenue. However, that being said, if i have to reinstall every time i need to use the reference, that might not be worth it.

i will repair my copy of 2007, and let everybody know how that works out. Thanks for the help.

-Mark Pendergraft
0 Likes
Message 8 of 15

Mikko
Advocate
Advocate
Trying this from another workstation Message was edited by: Mikko
0 Likes
Message 9 of 15

Mikko
Advocate
Advocate
Hmmm
0 Likes
Message 10 of 15

Mikko
Advocate
Advocate
Again?
0 Likes
Message 11 of 15

Anonymous
Not applicable
Any luck?
0 Likes
Message 12 of 15

Mikko
Advocate
Advocate
One last try. I keep getting

Error reading uploaded file '{0}'.

I've tried several different computers from several different drives. No luck. Anyhow the IntellliSense gives the squigly line under the error in my code, I just move the mouse to the end of the error and an error correction options dialog box (Shift+Alt+F10) opens and I am able to click the Add Reference (Apply Fix) from the options given.
0 Likes
Message 13 of 15

Anonymous
Not applicable
yes, apparently the upload file portion of the website is not working right now.

So, i have the line:

Dim AcApp As Autodesk.AutoCAD.Interop.AcadApplication = Application.AcadApplication

in my code, and under the autodesk.autocad.interop.acadapplication portion there is a blue squiggly line. when i open intellisense to see the suggested fixes, it only shows me alternatives that are similar using the managed libraries. there is no option to 'add reference'.

I'm using VS 2005 Pro, are you using VS 2003 perhaps?

do you also have AutoCAD 2006 on your computer?
0 Likes
Message 14 of 15

Mikko
Advocate
Advocate
Here is a link at PutStuff.com where I upload a jpg.

http://putstuff.putfile.com/75785/5559755

You gotta click thru to the 3rd page to download the file.

I'm using Microsoft Visual Studio 2005 Team Edition for Software Developers and
AutoCAD 2008
0 Likes
Message 15 of 15

Anonymous
Not applicable
still didn't work for me.

http://putstuff.putfile.com/75788/5639198

as you can see from the screen shot, add reference is not an option.

i will try a repair on 2007 next. i'll let you know how it goes.

0 Likes