Hi all,
I have one macro written in VBA that is available in AutoCAD Application. My issue is that I have written macro on my laptop and works really fine. But when I share it on other PC's which are running the same AutoCAD with the same settings I will get this error "compile error: can't find project or library".
I know that the problem is with the references and that is what I want understand to.
If I take into Tools-References I see following;
AutoCAD 2012 Type Library is missing. BUT, I have linked AutoCAD 2012 Type Library as well so there are two items;
Missing: AutoCAD 2012 Type Library
AutoCAD 2012 Type Library
When I uncheck missing one it works fine again.
My question why this happens and how can I fix this so I dont need to go to each PC and uncheck this option every time I make some changes of code.
Many thanks,
Solved! Go to Solution.
Solved by norman.yuan. Go to Solution.
Hi,
When you click onto the line with "AutoCAD 2012 Type Library" that is functional and look to the file, wich it references, is the file the same as the one for the "MISSING..." line?
>> When I uncheck missing one it works fine again.
Just to make sure: you have saved the DVB-file after that change?
- alfred -
Hi,
thanks for your response. Yes I did save that *.dvb file but you are probably right with 2 different files. I have to check in tomorrow and let you know.
Peter
I can cofirn that it is the same file. See attachment please.
Any idea what could cause this issue?
My guess is that the 2 computers have different versions of AutoCAD: both are AutoCAD 2012, but one is 32-bit and the other is 64 bit. Iin this case even the type library file is the same, they have different class Id in windows registry, and they are not exchangeable in terms of being used in VBA.
Norman Yuan
Hi,
you were right, all the PC's there is installed 64-bit OS works fine, but that one where is 32-bit installed gives me this error.
Dont knot why 50% of our PC's is having 32-bit OS when we have the same machines...
Many thanks, I see that have to handle this somehow on my own.
Peter
Hi, actually yes, I moved to .NET.
To be honest, I did not find any solution for this, I had to change it on each PC manualy (depending on 32 or 64 bit)