VBA
AutoCAD 2008 - Will my programs work?
Submitted by rkmcswain on Wed, 03/21/2007 - 17:56If you are planning on upgrading to AutoCAD 2008 32-bit, and you have existing LISP, VBA, or ARX programs, will they work? Generally speaking, yes. You may have to make a minor adjustment to your code, but for the most part there shouldn't be any problems.
If you are planning on upgrading to AutoCAD 2008 64-bit, then you may have some decisions to make and/or work to do...
VBA progress bar
Submitted by rkmcswain on Tue, 05/30/2006 - 20:12Here's a quick tip for making a VBA progress bar without adding a reference to the MSComCtl.ocx control, or any other custom control.
Add a Textbox to your form
Position and size it to it's maximum size.
Make note of the width of the textbox when you are done.
Add the following code to your form Initialize event.
TextBox1.Width = 0
Wheel scroll in VBA editor
Submitted by rkmcswain on Fri, 12/02/2005 - 08:00If you are working in the VBA editor and are frustrated because the scroll button on your mouse does not scroll, then pick up this freebie called FreeWheel and drop it in your Windows Start Menu in the startup group.
Launch PDF from AutoCAD
Submitted by rkmcswain on Tue, 11/22/2005 - 14:00If you need the ability to launch a PDF file from a menu macro, lisp file, or VBA routine, check out the code shown below. This will launch the PDF using the default registered application, just as if you had entered the file name in the Windows Start-Run dialog
This avoids any browser related issues which can arise if you use the AutoCAD "BROWSER" command.
It makes no assumptions regarding the application (or it's version) used to open a PDF document, or the presence of a properly configured PGP file.
All content is copyright © CAD Panacea 2008-2010 unless otherwise noted.
All content of CAD Panacea is solely my own personal thoughts and opinions and do not represent my employer or any others.
All comments posted to this blog are the sole responsibility of the person making the comment.
Google, as a third party vendor, uses cookies to serve ads on this site. Google's use of their cookies enables it to serve ads to users based on their visit to your sites and other sites on the Internet. You may opt out of the use of these cookies by visiting the Google ad and content network privacy policy.



