{"id":3811,"date":"2025-10-16T11:02:03","date_gmt":"2025-10-16T10:02:03","guid":{"rendered":"https:\/\/www.luso-cad.com\/?p=3811"},"modified":"2025-11-28T12:42:50","modified_gmt":"2025-11-28T12:42:50","slug":"load-lisp","status":"publish","type":"post","link":"https:\/\/www.luso-cad.com\/en\/load-lisp\/","title":{"rendered":"How to Create and Load AutoLISP Applications in LusoCAD"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"3811\" class=\"elementor elementor-3811\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f9b6c24 e-flex e-con-boxed e-con e-parent\" data-id=\"f9b6c24\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-55cd395 elementor-widget elementor-widget-video\" data-id=\"55cd395\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=MFSOkq-OaLc&quot;,&quot;show_image_overlay&quot;:&quot;yes&quot;,&quot;image_overlay&quot;:{&quot;url&quot;:&quot;https:\\\/\\\/www.luso-cad.com\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/LISP-2.png&quot;,&quot;id&quot;:3826,&quot;size&quot;:&quot;&quot;,&quot;source&quot;:&quot;library&quot;,&quot;alt&quot;:&quot;&quot;},&quot;lazy_load&quot;:&quot;yes&quot;,&quot;lightbox&quot;:&quot;yes&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-lightbox\">\n\t\t\t\t\t\t\t<div class=\"elementor-custom-embed-image-overlay\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox=\"{&quot;type&quot;:&quot;video&quot;,&quot;videoType&quot;:&quot;youtube&quot;,&quot;url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/embed\\\/MFSOkq-OaLc?feature=oembed&amp;start&amp;end&amp;wmode=opaque&amp;loop=0&amp;controls=1&amp;mute=0&amp;rel=0&amp;cc_load_policy=0&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;modalOptions&quot;:{&quot;id&quot;:&quot;elementor-lightbox-55cd395&quot;,&quot;entranceAnimation&quot;:&quot;&quot;,&quot;entranceAnimation_tablet&quot;:&quot;&quot;,&quot;entranceAnimation_mobile&quot;:&quot;&quot;,&quot;videoAspectRatio&quot;:&quot;169&quot;}}\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJ0eXBlIjoidmlkZW8iLCJ2aWRlb1R5cGUiOiJ5b3V0dWJlIiwidXJsIjoiaHR0cHM6XC9cL3d3dy55b3V0dWJlLmNvbVwvZW1iZWRcL01GU09rcS1PYUxjP2ZlYXR1cmU9b2VtYmVkJnN0YXJ0JmVuZCZ3bW9kZT1vcGFxdWUmbG9vcD0wJmNvbnRyb2xzPTEmbXV0ZT0wJnJlbD0wJmNjX2xvYWRfcG9saWN5PTAiLCJhdXRvcGxheSI6InllcyIsIm1vZGFsT3B0aW9ucyI6eyJpZCI6ImVsZW1lbnRvci1saWdodGJveC01NWNkMzk1IiwiZW50cmFuY2VBbmltYXRpb24iOiIiLCJlbnRyYW5jZUFuaW1hdGlvbl90YWJsZXQiOiIiLCJlbnRyYW5jZUFuaW1hdGlvbl9tb2JpbGUiOiIiLCJ2aWRlb0FzcGVjdFJhdGlvIjoiMTY5In19\">\n\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" width=\"1280\" height=\"720\" src=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2.png\" class=\"attachment-full size-full wp-image-3826\" alt=\"\" decoding=\"async\" srcset=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2.png 1280w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2-300x169.png 300w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2-1024x576.png 1024w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2-768x432.png 768w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/LISP-2-18x10.png 18w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-custom-embed-play\" role=\"button\" aria-label=\"Reproducir v\u00eddeo\" tabindex=\"0\" data-no-translation-aria-label=\"\">\n\t\t\t\t\t\t\t<i aria-hidden=\"true\" class=\"jki jki-play\"><\/i>\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b5a2a23 elementor-widget elementor-widget-text-editor\" data-id=\"b5a2a23\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: justify;\">O <strong>AutoLISP<\/strong> 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.<\/p><h2 style=\"text-align: justify;\">Understanding AutoLISP Files<\/h2><p style=\"text-align: justify;\">AutoLISP files normally use the extension <strong>.lsp<\/strong>but you can also find files<strong> .mnl<\/strong>. Both can be edited with simple text editors such as <strong>Notepad<\/strong> on Windows or <strong>TextEdit<\/strong> on macOS.<\/p><ul style=\"text-align: justify;\"><li><strong>Files<\/strong> <strong>LSP<\/strong> contains Lisp code for automation.<\/li><li><strong>Files<\/strong> <strong>MNL<\/strong> 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).<\/li><\/ul><h2 style=\"text-align: justify;\">Creating an AutoLISP File<\/h2><p style=\"text-align: justify;\">Here's how to create your first .lsp file:<\/p><p style=\"text-align: justify;\"><strong>In Windows<\/strong><\/p><ol style=\"text-align: justify;\"><li>Open Notepad from Windows Accessories.<\/li><li>Click on File &gt; Save As and create a new folder called LSP Files in the Documents folder.<\/li><li>Name the file LISP_Tutorial.lsp, set Save as type to All files and choose ANSI encoding.<\/li><li>Type or paste your Lisp code into the editor.<\/li><li>Save and close Notepad.<\/li><\/ol><p style=\"text-align: justify;\"><strong>On macOS<\/strong><\/p><ol style=\"text-align: justify;\"><li>Open <strong>TextEdit<\/strong> from Applications.<\/li><li>In Preferences, set the format to <strong>Plain text<\/strong> and deactivate the spelling check options.<\/li><li>Create a new document and Save it.<\/li><li>Name the file LISP_Tutorial.lsp and uncheck the option to automatically add .txt.<\/li><li>Type or paste your Lisp code, save it and close TextEdit.<\/li><\/ol><h2 style=\"text-align: justify;\">Upload the AutoLISP file to LusoCAD<\/h2><p style=\"text-align: justify;\">To load your new Lisp application:<\/p><ol style=\"text-align: justify;\"><li>In LusoCAD, go to<strong> Manage tab &gt; Applications panel &gt; Load application<\/strong>, or write <strong>APPLOAD<\/strong> in the command line.<\/li><li>Navigate to the <strong>LSP Files<\/strong> and select LISP_Tutorial.lsp.<\/li><li>Confirm any security warnings and click on <strong>Load<\/strong>.<\/li><li>Close the window and check the confirmation in the command history.<\/li><\/ol><p style=\"text-align: justify;\"><img decoding=\"async\" src=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.28-a.-m.png\" alt=\"Loading LISP Applications to LusoCAD\" width=\"600\" height=\"423\" class=\"aligncenter wp-image-3814\" srcset=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.28-a.-m.png 454w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.28-a.-m-300x211.png 300w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.28-a.-m-18x12.png 18w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p><p style=\"text-align: justify;\">Your Lisp programme will remain active until you close LusoCAD. To have it loaded automatically on start-up, add it to the <strong>Startup Suite<\/strong>:<\/p><ul style=\"text-align: justify;\"><li>Open the command <strong>APPLOAD<\/strong>click on <strong>Startup Suite<\/strong> and add the .lsp file.<\/li><li>Restart LusoCAD and your personalised remote control will be ready to use.<\/li><\/ul><p style=\"text-align: justify;\"><img decoding=\"async\" src=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.44-a.-m.png\" alt=\"Startup Suite in LusoCAD for LISP Applications\" width=\"600\" height=\"423\" class=\"aligncenter wp-image-3815\" srcset=\"https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.44-a.-m.png 454w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.44-a.-m-300x211.png 300w, https:\/\/www.luso-cad.com\/wp-content\/uploads\/2025\/10\/Captura-de-Pantalla-2025-10-16-a-las-10.52.44-a.-m-18x12.png 18w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p><p style=\"text-align: justify;\">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!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>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!<\/p>","protected":false},"author":4,"featured_media":3822,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/posts\/3811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/comments?post=3811"}],"version-history":[{"count":20,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/posts\/3811\/revisions"}],"predecessor-version":[{"id":4336,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/posts\/3811\/revisions\/4336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/media\/3822"}],"wp:attachment":[{"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/media?parent=3811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/categories?post=3811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luso-cad.com\/en\/wp-json\/wp\/v2\/tags?post=3811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}