Additional Loading Instructions
In addition to the above advice, there are a few other filetypes to be aware of when delving into the world of LISP programming.
VLX/FAS Files
You may discover that some programs are posted in the form of either a .VLX or .FAS file. These are programs that have been compiled into one file to make them not only easier to load (with only one file to deal with), but also more secure as far as code protection is concerned.
To load a .VLX or .FAS file, just save the file to a known location, and follow the instructions in the above post, as if you were dealing with a LISP file. Of course, the syntax to invoke the function is not readily available, but may be either provided by the program developer, or appear at the command line upon loading the file.
DCL Files
DCL (Dialog Control Language) gives the user the ability to create dialog boxes with relative ease. These files run in conjunction with LISP files, and may be compiled with the relevant LISP file into a VLX or FAS file.
DCL language looks like this:
To run a program that uses a DCL file, save the provided DCL file into your AutoCAD Search Path.Code:// Increment Numerical Text Sign Selector adder : dialog { label = "Specify Increment Direction"; : text { label = ""; key = "sel_text"; alignment = centered; } : row { : button { label = "+1"; key = "sel_add"; fixed_width = true; mnemonic = "+"; } : button { label = "-1"; key = "sel_sub"; fixed_width = true; mnemonic = "-"; } } // row ok_only; } // dialog
The AutoCAD Search Path is normally found:
C:\Program Files\AutoCAD <version>\Support\
But additonal Search Path locations may be added by going to:
Tools > Options > Files (tab) > Support File Search Path
And adding a new filepath.
The LISP file associated with the DCL file can be loaded and run as normal, using the instructions provided in the above post.
If you are still puzzled, search the forums, or our FAQ for more information.





AutoLISP
Reply With Quote

Bookmarks