O AutoLISP is an interpretive language that allows you to automate tasks and personalise your LusoCAD experience. As AutoLISP code is stored in text files, it can be easily created, loaded and executed directly in the software. In this tutorial, we'll show you how to create an AutoLISP file, load it into LusoCAD and ensure that it runs automatically every time you start the programme.
Understanding AutoLISP Files
AutoLISP files normally use the extension .lspbut you can also find files .mnl. Both can be edited with simple text editors such as Notepad on Windows or TextEdit on macOS.
- Files LSP contains Lisp code for automation.
- Files MNL are associated with customising the interface and are loaded automatically when a CUI/CUIx file with the same name is opened (for example, acad.mnl is loaded with acad.cuix).
Creating an AutoLISP File
Here's how to create your first .lsp file:
In Windows
- Open Notepad from Windows Accessories.
- Click on File > Save As and create a new folder called LSP Files in the Documents folder.
- Name the file LISP_Tutorial.lsp, set Save as type to All files and choose ANSI encoding.
- Type or paste your Lisp code into the editor.
- Save and close Notepad.
On macOS
- Open TextEdit from Applications.
- In Preferences, set the format to Plain text and deactivate the spelling check options.
- Create a new document and Save it.
- Name the file LISP_Tutorial.lsp and uncheck the option to automatically add .txt.
- Type or paste your Lisp code, save it and close TextEdit.
Upload the AutoLISP file to LusoCAD
To load your new Lisp application:
- In LusoCAD, go to Manage tab > Applications panel > Load application, or write APPLOAD in the command line.
- Navigate to the LSP Files and select LISP_Tutorial.lsp.
- Confirm any security warnings and click on Load.
- Close the window and check the confirmation in the command history.

Your Lisp programme will remain active until you close LusoCAD. To have it loaded automatically on start-up, add it to the Startup Suite:
- Open the command APPLOADclick on Startup Suite and add the .lsp file.
- Restart LusoCAD and your personalised remote control will be ready to use.

By creating and managing AutoLISP applications, you can automate repetitive tasks, increase efficiency and customise LusoCAD to suit your workflow. Start experimenting today and unlock the full potential of your design environment!