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

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

Anonymous
Not applicable
848 Views
2 Replies
Message 1 of 3

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

Anonymous
Not applicable

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

 

 

 

0 Likes
849 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

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
0 Likes
Message 3 of 3

dgorsman
Consultant
Consultant

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.


0 Likes