- UID
- 3825
- 积分
- 2760
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-4-14
- 最后登录
- 1970-1-1
|
发表于 2003-11-1 00:32:05
|
显示全部楼层
<tr>
<td width="100%" height="18"><b><font face="Verdana" size="6">S</font></b><font face="Verdana" size="2">o,
you wanted to have a nice big toolbag with which to be able to customize
your software goodies. That's nice. Be careful of what you
wish for, right? Well, I shouldn't put a negative spin on this since
I have always felt that more is better when it comes to having the tools
to turn off-the-shelve wares into tools that help you best.</font>
<p><font face="Verdana" size="2">Autodesk began this thing back in the
earliest stages of AutoCAD when Mr. Walker decided to include AutoLISP in
the base product. This was obviously a good decision, for us and for
Autodesk. Times change and so do programming tools, just ask any
former COBOL or CP/M programmer.</font></p>
<p><font face="Verdana" size="2">Autodesk has poured a lot of effort into
the customization aspect of their products. Indeed, other than
Microsoft, I don't think anyone has done so much to provide so many tools
with their standard application software products. I'm not talking
about operating systems, just applications. When Visual Basic took
off, it gave push to help VBA (Visual Basic for Applications) see the
light of day. Microsoft heard the door knock and figured they should
answer it with what the visitors were crying for: tools to help customize
their products.</font></p>
<p><font face="Verdana" size="2">The unavoidable question that always
comes up is: Which one should I use?</font></p>
<p><font face="Verdana" size="2">That's easy, I can answer that in eight
words: It depends on what you're trying to do.</font></p>
<p><font face="Verdana" size="2">I am going to attempt to justify the
existence of Visual LISP and VBA in contrast to each other here. But
keep in mind that this is a touchy subject and often taken very seriously
by those who not only have no life whatsoever, but who are likely to
suffer from paranoid delusions of internal self-doubt and angst, bordering
on bouts of depression and possibly suicidal tendencies. Whoa!
What does this mean? Hell, I don't even know. All I can say is
that others will argue this until the beer runs out or Hell freezes over,
which ever occurs last. OK, here goes...</font></p>
<blockquote>
<p><font face="Verdana" size="2"><b>Visual LISP</b> is the replacement
for the former AutoLISP. It is an interpreted language by nature,
but offers the capability to compile the source code into a
faster-running form called VLX. The code is executed by a coupled
interpreter that is provided within AutoCAD (and many other Autodesk
products). Visual LISP provides a horrid means to writing dialog
forms called DCL or Dialog Control Language. Written by one-legged
monks back in the tenth century, it is still used by many who have scars
from pulling out hair to develop usable dialog forms for those who
detest command typing and menu picking.</font></p>
<p><font face="Verdana" size="2"><u>Advantages</u>: Works well for
processing tasks on objects and tables entirely within drawings or
drawing sessions. Easy to write and debug. Easy to save,
load and share with others. Can be written using Notepad and a
stone axe by a campfire.</font></p>
<p><font face="Verdana" size="2"><u>Disadvantages</u>: Difficult
to interface with other applications. Difficult and limited
capabilities for developing and managing dialog forms. Works only
within Autodesk products.</font></p>
<p><font face="Verdana" size="2"><b>VBA</b> is a Microsoft
product. End of story. Well, not quite. VBA is
licensed by Microsoft to resellers and developers (for a nominal fee
that would make you sweat) to help interface their products with
Microsoft products. Go ahead, argue that last sentence, but do you
think Microsoft could care beans about how it improves other folks'
products alone? Hell no! If it doesn't help further some
marketing strategy cooked up by Microsoft for the benefit of Microsoft,
they won't do it. Period.</font></p>
<p><font face="Verdana" size="2"><u>Advantages</u>: Works well for
moving data between Autodesk products and other applications like
Microsoft Office. Allows referencing and borrowing of tools from
other applications within the current application. Easy and
intuitive dialog form designing tools. Can be written to control
AutoCAD from other applications or to control other applications from
within AutoCAD.</font></p>
<p><font face="Verdana" size="2"><u>Disadvantages</u>: Limited
capabilities for certain types of internal drawing processing
tasks. Requires AutoCAD or other VBA-enabled application to write
code. If you're used to writing code in VB (full Visual Basic)
then VBA may seem a little confining and limiting to you. That's
just my personal feeling after having first learned C++ then VB5 and VB6
and moving "on" to VBA 5.0 and now VBA 6.x. Oh
well. A pile of beans.</font></p>
</blockquote>
<p><font face="Verdana" size="2">OK, so it's quite possible that some of
you will disagree with my viewpoints here and that's fine. This is a
free space to debate viewpoints. Of course, I have to say that if
you disagree with my viewpoints you obviously suck. Ho Ho!
Just kidding.</font></p>
<p><font face="Verdana" size="2">In a nutshell, both VLISP and VBA have a
definite advantage over each other depending upon the purpose for which
the tool is used. No programming language is the
"best". That's a load of horses**t for anyone to begin to
say such a thing. It's what works best for the job at hand that
matters. Sometimes even that is a toss-up and it comes down to what
you know best.</font></p>
<p><br>
Dave</p>
</td>
</tr> |
|