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

"File not found" error calling ARX from VBA 64b

2 REPLIES 2
Reply
Message 1 of 3
ITIT1194
504 Views, 2 Replies

"File not found" error calling ARX from VBA 64b

Hi,

 

I'm getting this error "Run-time" error '48' "File not found: *****.arx" calling functions from VBA (Autocad 2011 64b).

 

Please note that same code (VBA & ARX) works fine on 32b env.

 

Any ideas?

 

THK

 

 

 

2 REPLIES 2
Message 2 of 3
adam.nagy
in reply to: ITIT1194

Hi,

 

How exactly are you calling ARX from VBA?

 

You may be aware that on x64 bit OS the VBA engine is running out-of-process from AutoCAD, in a separate 32 bit process, so if you are trying to call a function directly from an ARX file that is loaded into AutoCAD, then that won't work.

 

In your ARX file you could create commands that would accept parameters and then you could call those using SendCommand.

Or you could implement a COM server inside the ARX that could be accessed from outside (from your VBA application as well) through COM.

 

I hope this helps.

 

Adam Nagy

Autodesk Developer Network



Adam Nagy
Autodesk Platform Services
Message 3 of 3
dgorsman
in reply to: adam.nagy

Actually, I think this is referring to the acvba.arx, which is the VBA enabler.  If its not installed and is called for in an ACAD.RX file (for example), this warning occurs.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


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

Post to forums  

Autodesk Design & Make Report

”Boost