Tuesday, March 26, 2013

AutoCAD 2014 supports VBA 64-bit

Yes, VBA is still available for AutoCAD in the latest 2014 even though it was not supposed to. 64bit VBA (Visual Basic for Applications) is finally also available in 64-bit for AutoCAD. The performance problems, with previous releases of 64bit AutoCAD when using VBA, should be now be gone.

Note that 32bit VB6 controls will fail on 64bit.

The version of VBA that is available for AutoCAD 2014 is VBA 7.1.

Microsoft has introduced two new conditional compilation constants: “VBA7” and “Win64”.

#If VBA7 Then
    'Use new VBA7 functionality
#Else
    'Use old VBA functionality
#End If

The Win64 constant enables a separation between the 32 and 64 bit version of VBA and can be used to ensure that code is only executed when VBA runs in the correct mode.

For AutoCAD 2014 64-bit VBA is not supported on Windows XP Professional.

Find the VBA for AutoCAD downloads here at http://www.autodesk.com/vba-download.

For reference these resources can be helpful: Compatibility Between the 32-bit and 64-bit Versions of Office 2010 and 64-Bit Visual Basic for Applications Overview.

Previous post Learn how to migrate from VBA to .NET for AutoCAD, VBA 7 for AutoCAD 2012? and VBA Download for AutoCAD 2013.

Sometimes it can still make sense to migrate from VBA to .NET for AutoCAD and JTB World provides this service. Welcome to contact us with your needs.

No comments:

Post a Comment

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.