[{"data":1,"prerenderedAt":120,"prefetchLinks":121},["ShallowReactive",2],{"article_draftsight-2020-using-lisp-to-customize-commands_draftsight":3,"_apollo:default":118,"_apollo:identified":119},{"posts":4},{"nodes":5,"__typename":117},[6],{"id":7,"slug":8,"title":9,"uri":10,"excerpt":11,"locale":12,"featuredImage":15,"tableOfContents":23,"content":24,"date":25,"authorJobTitle":26,"author":27,"masterings":37,"globalTags":51,"products":63,"disciplines":74,"seo":106,"__typename":116},"cG9zdDo1ODg0NA==","draftsight-2020-using-lisp-to-customize-commands","DraftSight 2020 Using Lisp to Customize Commands","\u002Fproducts\u002Fdraftsight\u002Fdraftsight-2020-using-lisp-to-customize-commands","\u003Cp>Over the last couple of blogs, I’ve spoken about ways you can…\u003C\u002Fp>\n",{"locale":13,"__typename":14},"en_US","Locale",{"node":16,"__typename":22},{"large":17,"__typename":18,"medium_large":17,"thumbnail":19,"srcSet":20,"sizes":21},"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flispcustomcover.jpg.webp","MediaItem","https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flispcustomcover-150x150.jpg.webp","https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flispcustomcover.jpg.webp 600w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flispcustomcover-300x172.jpg.webp 300w","(max-width: 600px) 100vw, 600px","NodeWithFeaturedImageToMediaItemConnectionEdge",[],"\u003Cp class=\"wp-block-paragraph\">Over the last couple of blogs, I’ve spoken about ways you can customize your DraftSight 2020 experience.  In today’s blog, I’ll talk about another – LISP.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">So, what is LISP? LISP is a programming language that has been around since the late 1950’s.  Yes, you read that right, it’s over 60 years old! With regards to CAD software, I’ve been using LISP since the early 90’s to customize my experience.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">So, what can you do with LISP?  Well, first off, to use LISP, you must be using DraftSight Professional or Premium – it is not supported in DraftSight Standard.  If you are running either of those, LISP will allow you to create your own programs to run inside of DraftSight 2020. Best of all, you only need Notepad or any other simple text editor to create your LISP routines.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">For example, the LISP routine below will allow you to isolate a layer in your drawing:\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">\u003Cem>; To isolate a layer\u003C\u002Fem>\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">\u003Cem>(defun c:iso ()\u003C\u002Fem>\n\u003Cem>(setq ss (ssget))\u003C\u002Fem>\n\u003Cem>(setq NoEnties (sslength ss))\u003C\u002Fem>\n\u003Cem>(setq Entstuff (ssname ss 0))\u003C\u002Fem>\n\u003Cem>(setq Entstuff (entget Entstuff))\u003C\u002Fem>\n\u003Cem>(setq NewSetLayer (cdr (assoc ‘8 Entstuff))) \u003C\u002Fem>\n\u003Cem>(command “layer” “s” NewSetLayer “”)\u003C\u002Fem>\n\u003Cem>(command “layer” “f” “*” “”)\u003C\u002Fem>\n\u003Cem>(setq i 0)\u003C\u002Fem>\n\u003Cem>(while (\u003C i NoEnties)\u003C\u002Fem>\n\u003Cem>(setq ThawLayer (ssname ss i))\u003C\u002Fem>\n\u003Cem>(setq ThawLayer (entget ThawLayer))\u003C\u002Fem>\n\u003Cem>(setq ThawLayer (cdr (assoc ‘8 ThawLayer))) \u003C\u002Fem>\n\u003Cem>(command “layer” “t” ThawLayer “”)\u003C\u002Fem>\n\u003Cem>(setq i (+ i 1))\u003C\u002Fem>\n\u003Cem>)\u003C\u002Fem>\n\u003Cem>)\u003C\u002Fem>\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">To load a LISP routine, first go to the Manage tab and click on Load Application.\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"165\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp1-650x165-1.png.webp\" alt=\"\" class=\"wp-image-58846\" srcset=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp1-650x165-1.png.webp 650w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp1-650x165-1-300x76.png.webp 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \u002F>\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">In the dialogue box, select your LISP routine and click on Open.\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"383\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp2-650x383-1.png.webp\" alt=\"\" class=\"wp-image-58847\" srcset=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp2-650x383-1.png.webp 650w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Flisp2-650x383-1-300x177.png.webp 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \u002F>\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">The next step is to run the LISP routine.  To do this, you need to know the command name.  If we take a look at the first line of code in the LISP routine above, you will see \u003Cem>(defun c:iso ().\u003C\u002Fem>  That shows us the command name, ISO.  Sometimes, depending on the routine, you might receive a prompt in the Command Window telling you the command name.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">The next step is to run the command. At the Command Window, enter ISO and hit enter.  The command loads and you can click on the layer you would like to isolate and hit enter or right click the mouse. You can see the routine in action below.\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Frecording-2-1024x556.gif.webp\" alt=\"\" class=\"wp-image-58848\" srcset=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Frecording-2-1024x556.gif.webp 1024w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Frecording-2-300x163.gif.webp 300w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Frecording-2-768x417.gif.webp 768w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Frecording-2-1536x835.gif.webp 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \u002F>\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">That’s just a very simple example of how you can make Custom commands within DraftSight 2020 Professional and Premium.  Because LISP has been around for so long, there are 1000’s of LISP routines available on the internet.  Just head over to your preferred search engine and start trawling through the links. If you’d like to learn how to program in LISP, take a look at \u003Ca href=\"https:\u002F\u002Fwww.cadoasis.com\u002Fdraftsight\u002Fdraftsight-lisp\u002F\" target=\"_blank\" rel=\"noopener noreferrer\">CADOASIS\u003C\u002Fa>, they have some excellent tutorials on learning LISP for DraftSight.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Learn more about DraftSight \u003Ca href=\"https:\u002F\u002Fwww.draftsight.com\u002F?utm_medium=Display&#038;utm_source=Blog&#038;utm_campaign=DraftSight_Blog&#038;utm_content=Learn_More_DS2020_&#038;utm_term=link-text\" target=\"_blank\" rel=\"noopener noreferrer\">here\u003C\u002Fa>.\u003C\u002Fp>","2020-05-07T12:19:54","",{"node":28,"__typename":36},{"nicename":29,"description":30,"slug":29,"name":31,"firstName":31,"lastName":26,"avatar":32,"__typename":35},"draftsight","DraftSight is a professional-grade 2D CAD product that allows you to access existing DWG files and create new ones at fraction of the cost of alternative CAD products.","DraftSight",{"url":33,"__typename":34},"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fdraftsight-avatar.jpg-96x96.webp","Avatar","User","NodeWithAuthorToUserConnectionEdge",{"nodes":38,"edges":45,"__typename":50},[39],{"id":40,"name":41,"slug":42,"uri":43,"__typename":44},"dGVybToxOTk2","Tutorials","tutorials","\u002Fmastering\u002Ftutorials\u002F","Taxonomy_mastering",[46],{"isPrimary":47,"node":48,"__typename":49},false,{"id":40,"name":41,"slug":42,"uri":43,"__typename":44},"PostToTaxonomy_masteringConnectionEdge","PostToTaxonomy_masteringConnection",{"nodes":52,"__typename":62},[53,57],{"id":54,"name":31,"slug":29,"uri":55,"__typename":56},"dGVybTo5NTk1","\u002Ftags\u002Fdraftsight\u002F","Taxonomy_tag",{"id":58,"name":59,"slug":60,"uri":61,"__typename":56},"dGVybTo5NTk2","Tips and Tricks","tips-tricks","\u002Ftags\u002Ftips-tricks\u002F","PostToTaxonomy_tagConnection",{"edges":64,"nodes":71,"__typename":73},[65],{"isPrimary":47,"node":66,"__typename":70},{"id":67,"name":31,"slug":29,"uri":68,"__typename":69},"dGVybTo1NQ==","\u002Fproducts\u002Fdraftsight\u002F","Taxonomy_product","PostToTaxonomy_productConnectionEdge",[72],{"id":67,"name":31,"slug":29,"uri":68,"__typename":69},"PostToTaxonomy_productConnection",{"nodes":75,"edges":99,"__typename":105},[76,90],{"id":77,"name":78,"slug":79,"uri":80,"parentId":81,"disciplines":82,"__typename":89},"dGVybTo1OQ==","2D CAD","2d-cad","\u002Fdisciplines\u002F2d-cad\u002F","dGVybTo1OA==",{"nodes":83,"__typename":88},[84],{"title":78,"uri":85,"parentId":86,"__typename":87},"\u002Fdisciplines\u002Fdesign-engineering\u002F2d-cad","cG9zdDozNzcz","Discipline","Taxonomy_disciplineToDisciplineConnection","Taxonomy_discipline",{"id":81,"name":91,"slug":92,"uri":93,"parentId":94,"disciplines":95,"__typename":89},"Design and Engineering","design-engineering","\u002Fdisciplines\u002Fdesign-engineering\u002F",null,{"nodes":96,"__typename":88},[97],{"title":91,"uri":98,"parentId":94,"__typename":87},"\u002Fdisciplines\u002Fdesign-engineering",[100,103],{"isPrimary":47,"node":101,"__typename":102},{"parentId":81,"id":77,"name":78,"slug":79,"uri":80,"__typename":89},"PostToTaxonomy_disciplineConnectionEdge",{"isPrimary":47,"node":104,"__typename":102},{"parentId":94,"id":81,"name":91,"slug":92,"uri":93,"__typename":89},"PostToTaxonomy_disciplineConnection",{"canonical":107,"title":108,"metaDesc":26,"opengraphAuthor":26,"opengraphDescription":109,"opengraphTitle":9,"opengraphUrl":107,"opengraphSiteName":110,"opengraphPublishedTime":111,"opengraphModifiedTime":112,"twitterTitle":26,"twitterDescription":26,"readingTime":113,"metaRobotsNoindex":114,"__typename":115},"https:\u002F\u002Fblog-contrib-prd.itvpc.solidworks.com\u002Fproducts\u002Fdraftsight\u002Fdraftsight-2020-using-lisp-to-customize-commands\u002F","DraftSight 2020 Using Lisp to Customize Commands - Blog Solidworks","Over the last couple of blogs, I’ve spoken about ways you can…","Blog Solidworks","2020-05-07T16:19:54+00:00","2026-02-12T19:52:06+00:00",2,"index","PostTypeSEO","Post","RootQueryToPostConnection",{},{},1795393866966,[122,128,130,132,134,137],{"rel":123,"href":124,"as":125,"type":126,"crossorigin":127},"preload","https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Light-v2.woff2","font","font\u002Fwoff2","anonymous",{"rel":123,"href":129,"as":125,"type":126,"crossorigin":127},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Regular-v2.woff2",{"rel":123,"href":131,"as":125,"type":126,"crossorigin":127},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-SemiBold-v2.woff2",{"rel":123,"href":133,"as":125,"type":126,"crossorigin":127},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Bold-v2.woff2",{"rel":123,"href":135,"as":136},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002F3ds-navigation\u002Fds-header.min.js","script",{"rel":123,"href":138,"as":136},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002F3ds-navigation\u002Fds-footer.min.js"]