VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VB6.0 error AutoCAD 2012

1 REPLY 1
Reply
Message 1 of 2
iberasaluce
826 Views, 1 Reply

VB6.0 error AutoCAD 2012

Hello,
I inherited a VB6.0 program that uses the autocad dll for a series of tasks. I have been testing it with the AutoCAD 2012 reference, but everytime it reaches a line containing AcadApplication.ActiveDocument (ie: Call AcadApplication.ActiveDocument.SetVariable("ISAVEBAK", 0)) I got a 'Error Loading Type Library/DLL' message.
Is VB6.0 no more supported and I have to update the project to .Net or am I missing a dll file?
Thanks for your help,
Iker.

Tags (3)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: iberasaluce

Sounds like VB does not find the right version of the type library used when creating the program, i.e. it looks for acax17???.tlb and does not find it because instead you have acax18???.tlb. Try obtaining the right version of the type library and placing it into the same folder where the current version is (should be C:\Program Files\Common Files\Autodesk Shared or something like that).

 

Jordi

Tags (2)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost