AutoCAD

programmer?s Web toolbox

1 Mar, 2003 By: Barry Bowen

Shareware may solve your programming problem.


Many AutoLISP and VBA (Visual BASIC for Applications) programmers face the daily challenge of creating routines and programs that automate their AutoCAD projects. Often the routine or solution to your programming task may already exist somewhere on the Internet, but where, and how do you find it? The amount of information out there is overwhelming. Although this is not an exhaustive list of resources, it's a start, and the hardest part of anything is just getting started.

FAVORITE WEB SITES
Many Web sites provide resources for AutoLISP, Visual LISP, and VBA, alone or in combination. The place to start is Cadalyst's Web site. This resource is chock full of articles, columns, reviews, and code to increase your programming expertise. Code archives go back to 1993, and you can search by topic or by keyword. You need to register before you can download code.

Follow that up by going to acadX.com, an extensive collection of AutoLISP, Visual LISP, VBA, Win 32API, and .NET programming code, articles, downloads, links, and how-to articles. This site has a wide variety of resources for programmers at all levels.

If you're looking for shareware, Cadalog.com hosts more than 5,345 shareware, freeware, and evaluation files for CAD users. All files are free to download, but you first need to register. The Open Source page includes programs and articles, including a series on using and writing AutoLISP and ARX programs.

Programmer’s bookshelf

The Internet can’t duplicate the convenience and thoroughness of a print reference. Here are some of the books available for AutoCAD programmers:

  • AutoCAD Database Connectivity, First Edition, by Scott McFarlane
  • AutoCAD 2000 VBA Programmer’s Reference, by Joe Sutphin
  • AutoLISP Programming, Principles, and Techniques, by Rod Rawls and Mark Hagen
  • AutoLISP: Programming for Productivity, by William Kramer
  • AutoLISP to Visual LISP: Design Solutions for AutoCAD 2000, First Edition, by Kevin Standiford
  • Practical AutoLISP, by Thomas A. Stellman
  • Using Visual Basic with AutoCAD 2000, Second Edition, by Andrew Roe
  • Visual Lisp: A Guide to Artful Programming, First Edition, by Phil Kreiker

You can find price and publishing information at your favorite book seller.

Want more downloadable routines? The CAD Depot bills itself as the ultimate free online CAD shareware archive for personal and professional use.

For some tricky AutoLISP examples, go to xarch. This site features AutoLISP library tutorials, tools, programs, compilers, DWG tools, a news collection, and AutoLISP FAQs.

To find help on almost every aspect of using ActiveX Automation and VBA with AutoCAD, visit the ActiveCAD site hosted by Michael J. Hunter, who has written several articles on VBA for Cadalyst.

The VBA Design Network offers more than 2,000 Visual BASIC procedures and modules. All are open source, free for use in any project.

For general Visual BASIC assistance, visit Planet Source Code. This site is the largest public source code database on the Internet, with 6,660,471 lines of code, articles, and tutorials in 11 languages.

Finally, your software vendor may offer customization information and, better yet, forums to connect with other users. Autodesk, for example, hosts separate user discussion groups for Visual LISP, AutoLISP, Visual BASIC, and ObjectARX customization. Bentley also offers a VBA discussion group.

BETTER DIALOGS
In closing, I'd like to mention one of the best tools I've found for creating dialog boxes-ObjectDCL from 3rd Day Software. ObjectDCL is a brand-new dialog control language editor that replaces AutoCAD's DCL technology. This visual dialog box design system lets AutoLISP and Visual Lisp programmers create modal, modeless, and dockable dialog boxes similar to VBA dialog boxes.


AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Latest News from Cadalyst Partners
Feed
Big Hearty Autodesk Welcome to Tinkercad   19 May, 2013

Autodesk announced yesterday at Maker Faire which is essentially the center of the universe event for DIY & Makers our intent to acquire Tinkercad....More>>Read all Between the Lines blog posts>>

Feed
Teaching Old Designs New Tricks   17 May, 2013

Question: What do the QWERTY keyboard, the railroad, and shoelaces have in common? Answer: Their inventors are long gone. The QWERTY keyboard was...More>>Read more PTC Creo blog posts>>

Feed
Ideate - Ideate BIMLink for Revit 2014 now available   17 May, 2013

An update for my favorite Revit tool and most favorite Autodesk reseller. I miss you Bob! ...More>>Read more BIMbuilder blog posts>>

Feed
Discover and Fix Your Vibration Vulnerability with SolidWorks Simulation   17 May, 2013

When I go biking during the summer, I rely on the frame of my bicycle to withstand stresses such as vibration and impact. As I speed down the trail,...More>>Read more SolidWorks Blog posts>>

Feed
Behind the Design: How Words and Sketches Become a Picture Book   18 May, 2013

I bet, next to those dusty engineering and design textbooks on the shelf, you have a few picture books that have led to endless inspiration since you...More>>Read more SolidSmack blog posts>>

Poll
What type of input device (besides the keyboard) do you use at your primary CAD workstation?
Standard mouse
Trackball mouse
Programmable mouse
3D navigation device
Pen/tablet
Multiple devices
Submit Vote




Considering Wide Format Printing Solutions?
Four FREE White Papers Available:






Subscribe Cadalyst Newsletters