DOSLib extends the LISP programming languages, in these applications, by providing the following functionality: Drives - Check for drives, change between drives, and check available. (VLX and DCL files are not supported in AutoCAD for Mac. DOSLib is a library of LISP-callable functions that provide functionality not available in CAD-based LISP programming languages, included with AutoCAD and BricsCAD. vlx)-a compiled set of one or more LSP and/or dialog control language (DCL) files. fas)-a binary, compiled version of a single LSP program file.
lsp)-an ASCII text file that contains AutoLISP program code. This makes AutoLISP an easy language to experiment with, regardless of your programming experience.ĪutoLISP provides three file formats for applications: You may choose to experiment by entering code at the Command prompt, which allows you to see the results immediately. Some of the standard AutoCAD commands are actually AutoLISP applications. By creating AutoLISP routines you can add discipline-specific or workflow driven commands to AutoCAD. (setq a (getvar 'DWGNAME'))ĪutoLISP applications can prompt the user for input, access built-in AutoCAD commands directly, and modify or create objects directly in the drawing database.
For example, the following line of code sets a different value to the symbol a when executed in each open drawing. A namespace is an insulated environment keeping AutoLISP applications that are specific to one drawing from having symbol or variable name and value conflicts with those in another drawing. When an AutoLISP application is loaded, it functions in its own namespace for each drawing that is open. AutoLISP is an application interface for automating of design tasks.