vba problem

vba problem

Anonymous
Not applicable
1,180 Views
1 Reply
Message 1 of 2

vba problem

Anonymous
Not applicable

hi 

common dialog control does not work in autocad vba 2016 64 bit. is there any body know about this problem.

thanks

 

0 Likes
1,181 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

It is known issue because of AutoCAD VBA being 64bit since AutoCAD 2014, if the installed AutoCAD is 64bit. There are simply very few 64-bit equivalents to 32-bit VB/VBA components to use.

 

If your VBA program only needs to have an open file dialog, you can use VBA code to call Windows API. See this discussion:

 

https://forums.autodesk.com/t5/visual-basic-customization/vba-7-1-commondialog-lost/m-p/3841702#M968...

 

However, if you have relatively complicated VBA program that uses 32-bit UI components/ActiveX Controls, you would not be lucky enough to find 64-bit equivalent to port your old 32-bit VBA to 64-bit. You probably need to rewrite the program with newer technology, such as AutoCAD .NET API.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes