Place of AutoLISP in programming in AutoCAD
Print This Post
![]() |
Author | Orhan Toker |
| Profession | Architect M.Sc. | |
| Autodesk Authorized Consultant | ||
| Database Specialist | ||
Hello Daily AutoCAD readers,If you enter Google and search “AutoLISP”, you will see that 80% of the pages you find are Turkish websites. This is not because, Turkish people know AutoLISP better, it is why we are using it more often. In this article, I will try to find an answer starting from the context “Place of AutoLISP in programming in AutoCAD”.Yes, we are using AutoLISP more, because it is easier to learn, it doesn’t need additional programs and there are a lot of Turkish resources as you see. But, is it the correct programming tool for developing add-on programs for AutoCAD?Most of you know that we are earning our professional income by Taliasoft company that we own by developing AutoCAD applications. Recently, I visited a big factory for preliminary negotiation in order to develop a software for them. We are always trying to explain them that we are creating our applications by using Visual C# and Visual C++ which requires more effort for creating these applications in programming stage but enables great advantages and easiness in usage. However, IT manager told us that he writes some small programs by using AutoLISP all the time, and they are very important. He also told that without using these AutoLISP programs, it is impossible for the factory to work without using these programs. As he looks at our previous projects, he said that those programs are not their concern and they cannot be given as a reference. Can you imagine, those small AutoLISP macros are very important, on the other hand professional ObjectARX™ applications written in Visual C++, which makes some companies earn 300,000€ per year, are not important.
My dear friends, of course developing our own applications and increasing our efficiency makes us very proud. However, a lisp macro, which creates a description balloon into the drawing cannot be compared to a project that enables a kitchen project that has been bided and quoted then send to manufacturing to be transferred to SAP software without any missing data. This indicates that our own egos are giving harm to the company we are working at. Business ethics can not only be achieved by paying attention to working hours but we should also make use to out company. Now, let’s return back to the topic.
AutoLISP is an easy-to-use customization tool which requires no additional software development program and has an AutoCAD integrated editor and debugger and it is very useful. On the other hand, you cannot write more than macros that is useful for automation of jobs that tires your hand by doing the same thing over and over again. Even if you can develop more complicated programs by using DCL and new functions that start with vl_, this will be time consuming from professional point of view and they are not just simple ideas that come into your mind while drawing and put into code quickly.After making such a harsh introduction in the article, next, answer must be given for the question of “What can be done with MS Visual™ C# or ObjectARX™ and cannot be done with AutoLISP?”.
Connection to professional databases, electronic communication (email, MAPI etc.), web browser integration, licensing and on-line updating are among the first subjects that come into my mind.You cannot access registry files by using AutoLISP. Or, you cannot make anything but mixing the code as a security measure. You cannot use tools like database spreadsheets, tree-views, browser etc. Yes, you can get something working with 3-5 lines of code and by spending a few minutes. Very ingenious and really useful macros can also be written. However, as far as real automation is concerned, professional tools are required.If I summarize my article in one final paragraph, even if AutoLISP is far away from providing automation needs of a professional organization; it has the capabilities for increasing project production speed and efficiency. Besides, AutoLISP users get the knowledge of AutoCAD’s internal working mechanism very well. For this reason, AutoLISP, which is a programming language suitable for amateur purposes, can be called “First step of AutoCAD programming”. It is a fact that it will be very hard to advance to other methods without passing over this step.
Have ease everyone.
Technorati Tags: AutoLISP, AutoCAD, programming
Similar Posts
Rate this article:


February 13th, 2007 11:54
Orhan,
interested reading, but not quite correct. I do custom AutoCAD programming for more than 20 years now, have created many large-scale applications and written several books about this.
There are some areas in which AutoLISP, more specifically VisualLISP, reaches its limits. Most importantly these are custom objects and highly secure code. But almost everything else can be done with VisualLISP and most often much faster and much more reliable than with VBA or ObjectARX.
Of the topics you list, both database access, registry access, licensing, email and web integration can easily be implemented in VisualLISP and I have done so in the past. A bit more complicated are complex dialogues, but even this is not too difficult by implementing dialogs (with tree views or database sheets) in a tiny VBA UI which communicates with the main LISP application.
What makes VisualLISP the most value is its capability for rapid prototyping and its reduction of code length. What takes a single line in LISP may need pages of code in C++. As a consultant, getting out solutions fast and reliable is very important. This is why I prefer LISP.
Dietmar Rudolph
(author “Mastering AutoCAD Objects” and many more books on AutoCAD)
February 13th, 2007 15:27
Hello dear Dietmar,
It’s an honour for me to see your comments under my article. I’m agree with some of your opinions. I appoligise our readers if there is a misunderstanding.
As i explained in my article we’re also developing the professional AutoCAD applications that we can not make with AutoLISP or Visual LISP objects.
We will be very happy if you share your opinions with us from here.
Thank you very much.
February 15th, 2007 10:11
i need autolisp program for pick points with text
February 15th, 2007 11:28
I think many custom made solutions are “overdone” by using C++ and ObjectArx. Lisp and VBA may be easier for the customer to reuse later. This is sometimes a conflict of interests between you (the developer) and the customer. The fastest way to program in AutoCAD (or BricsCad
are
1) Lisp, if you need a lot of user interaction, selection sets etc,
2) VBA, if you need to communicate with databases, ADO, DAO etc, or COM objects like Excel for example.
Of course, this is just my opinion
May 3rd, 2007 15:02
As I read from books (I’m not autor) and from exaples Auto Lisp is more or less limited, even that is easy to understand “Easy but limited”. I completely agree with Mr. Dietmar Rudolph comment. I will just add the question to all of you. Can VB.NET fullfil all needs of AutoCAD programming? Can VB.NET be the bridge of easy resolving of CAD problems in a Win platform? I think yes. If not please reply to me.
June 6th, 2007 09:40
Agree with Raggi Thor and Dietmar Rudolph. AutoLISP is fast for design/drafting solution development. VBA, C++ etc are better for data exchange with other Windows component, but require longer time for development. So, it will depend on the purpose of the solution.
September 19th, 2007 06:37
does anyone know how to use autolisp for determine the four bar linkage?
May 27th, 2008 14:37
It war really gud article.
I am working on software custmization in Autocad.
I want to know that how we create Add On application for autocad.
Which technology is best suited for me as I am a .net devloper.
Rgds
Prabhav mishra