Friends: Leaflet Printing , Property in Dubai , Talia Cad Software

Sign In

Subscribe

Subscribe to Daily Autocad.


Sep 01
Monday
AutoLISP, Programming, Visual LISP
Difference between AutoLISP and VisualLISP

Dear readers,

Today I will try to talk about the differences between AutoLISP and VisualLISP. VisualLIPS has made the software a lot easier ever since the R14 edition of AutoCAD. As I gather, VisualLISP is not commonly used here in our country, Turkey. At least, my Google search has proven so.

For you to be able to see the difference more clearly, I present you two kinds of programs. One of them is the C:F1 command and the other is the C:F2 command (Code.3). They both do the same thing: Give your selection the red color property.

The sub-program the C:F1 function uses is clearly the more capable one “Change-Color-F1” (Code.1). when you edit an object with AutoLISP, you need to have its DXF information.

The Visual Lisp/ ActiveX programming requires more experience but it is easier to use its methods once you edit an object. That is, for example, you use the vla-put-color method if you want to edit the color of an object. You don’t need to know a lot of English either, the names of the methods are quite self-explanatory.

We use the ActiveX name provided by Microsoft for its VBA software in VisualLISP language because its foundation is built on VBA.


Code.1 – The “Change-Color-F1” function that operates with the DXF code.


Code.2 – The Active-X Function “Change-Color-F2“


Code.3 - Main Functions; “C:F1” and “C:F2“

Have a nice time,

compare-lisp-func.zip 434 bytes
A sample program that compares Visual LISP and AutoLISP. Muharrem Kocyigit
Added On September 1, 2008 and downloaded 516 times.

Viewed 764 times so far... This week: 9 Today: 3 Latest: 19 November 2008, 4:20

Post Tags:

Post a Comment



All content and source © 2008 Daily Autocad | News Plus wordpress theme brought to you by Zidalgo.