[{"data":1,"prerenderedAt":126,"prefetchLinks":127},["ShallowReactive",2],{"article_extend-the-power-of-draftsight-with-customization-part-1-scripts_draftsight":3,"_apollo:default":124,"_apollo:identified":125},{"posts":4},{"nodes":5,"__typename":123},[6],{"id":7,"slug":8,"title":9,"uri":10,"excerpt":11,"locale":12,"featuredImage":15,"tableOfContents":24,"content":25,"date":26,"authorJobTitle":27,"author":28,"masterings":38,"globalTags":52,"products":69,"disciplines":80,"seo":112,"__typename":122},"cG9zdDo1ODMwOQ==","extend-the-power-of-draftsight-with-customization-part-1-scripts","Extend the Power of DraftSight with Customization – Part 1, Scripts","\u002Fproducts\u002Fdraftsight\u002Fextend-the-power-of-draftsight-with-customization-part-1-scripts","\u003Cp>DraftSight is a bit unlike most computer programs you use, in that…\u003C\u002Fp>\n",{"locale":13,"__typename":14},"en_US","Locale",{"node":16,"__typename":23},{"large":17,"__typename":18,"medium_large":19,"thumbnail":20,"srcSet":21,"sizes":22},"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-1024x535.jpg.webp","MediaItem","https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-768x401.jpg.webp","https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-150x150.jpg.webp","https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-1024x535.jpg.webp 1024w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-300x157.jpg.webp 300w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-768x401.jpg.webp 768w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1.jpg.webp 1200w","(max-width: 640px) 100vw, 640px","NodeWithFeaturedImageToMediaItemConnectionEdge",[],"\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-1024x535.jpg.webp\" alt=\"\" class=\"wp-image-58311\" srcset=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-1024x535.jpg.webp 1024w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-300x157.jpg.webp 300w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1-768x401.jpg.webp 768w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing-blog-1.jpg.webp 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \u002F>\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">DraftSight is a bit unlike most computer programs you use, in that it’s actually intended to be customized. You may already set various interface properties or locations to your personal preference. Or you may create custom menus or set command aliases to better fit your workflow, but there’s another kind of customization available, and it’s something that can greatly extend the power of DraftSight.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">You can access DraftSight’s robust Application Programming Interface (API) to create your own commands, or to automate complex or repetitive tasks. Unlike other CAD vendors, the API is available in \u003Ca href=\"https:\u002F\u002Fwww.draftsight.com\u002Fproduct\u002Ffeatures\" target=\"_blank\" rel=\"noopener\">all versions of DraftSight\u003C\u002Fa> (Professional, Premium, Enterprise, and Enterprise Plus).\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Recently, Ramon Busboom and Vince Aman \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=TiuSJZE7CQQ\" target=\"_blank\" rel=\"noopener\">presented a webinar\u003C\u002Fa> to introduce you to the three most popular methods of customizing DraftSight. We’ll summarize each method in a three-part series, starting with today’s topic: Scripts.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Scripts\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Often the first place someone starts customizing DraftSight is through scripts. A script is simply a text-based file (with the extension of .SCR) that contains the proper sequence of commands, options, coordinates, etc. that produces the desired result. If you know how to enter commands in the DraftSight Command Window, you can create scripts.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Let’s say you want to automate drawing a Line from 0,0 to 5,5. From the Command Window, that sequence would be \u003Cem>LINE Enter 0,0 Enter 5,5 Enter Enter\u003C\u002Fem> (to end the LINE command). That’s your script also. Each line of the file is the next entry in the sequence.\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"221\" height=\"186\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing201_1.png.webp\" alt=\"\" class=\"wp-image-58312\">\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">Pretty easy, right? Even though our example is rather simple, you can use scripts to automate all kinds of tasks. But if you think a bit outside the box, you can also use scripts to import a massive list of points or coordinates.\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"180\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing201_2.png\" alt=\"\" class=\"wp-image-58313\" srcset=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing201_2.png 848w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing201_2-300x64.png 300w, https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fcustomizing201_2-768x163.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \u002F>\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">In the webinar, Ramon shows us an example of importing a massive set of coordinates that represents a point cloud. By simply inserting POINT \u003Cspace> M \u003Cspace> in front of the first line of coordinates, he turns a static list of over 40,000 points into a script that, when it runs in DraftSight, creates each point in a matter of seconds.\u003C\u002Fspace>\u003C\u002Fspace>\u003C\u002Fp>\u003Cfigure class=\"wp-block-image size-large\">\u003Cimg loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"516\" src=\"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fscripts_3.gif.webp\" alt=\"\" class=\"wp-image-58314\">\u003C\u002Ffigure>\u003Cp class=\"wp-block-paragraph\">How’s that for extending the power of DraftSight? It would take you forever to enter that many points manually.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Ramon follows up this example by opening a similar file in Excel (as “space delimited”) and adding layer info and a text label to each entry. There are a few tips and tricks involved, so it really is worth your time to \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=TiuSJZE7CQQ\" target=\"_blank\" rel=\"noopener\">watch the webinar\u003C\u002Fa>.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Things You’ll Need to Know\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">A few things to remember when creating scripts. First, they need to be ASCII-based, so don’t use a word processing program. Notepad® is perfect for writing scripts. Don’t forget to change the extension to SCR. A space or an end of line is the same as pressing ENTER from the Command Window. So, our previous example could be expressed on a single line as LINE 0,0 5,5.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">If you need to provide a text string (such as a layer name or text style), make sure to enclose it in double quotes (e.g., “Layer Name”).\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">And, if you need to access a command that typically presents you with a dialog box, there’s usually an alternate version that is Command Window only. Simply put a dash in from of the command name. For example, -LAYER instead of LAYER.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">If you’re unsure of the command sequence, just run it in DraftSight first from the Command Window. Pay attention to the order and options so that you can duplicate it in your script. When you’re ready to run your script, use the LOADSCRIPT command or just drag and drop it into the DraftSight editor!\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Scripts. They’re easy to use, easy to create, and you don’t have to be a programmer to master them.\u003C\u002Fp>\u003Cp class=\"wp-block-paragraph\">Next, we’ll summarize Vince’s discussion on using LISP to customize DraftSight. Until then, enjoy the \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=TiuSJZE7CQQ\" target=\"_blank\" rel=\"noopener\">webinar\u003C\u002Fa>, and hopefully you’ll get some ideas on how to use scripts to customize DraftSight.\u003C\u002Fp>","2022-03-31T15:49:37","",{"node":29,"__typename":37},{"nicename":30,"description":31,"slug":30,"name":32,"firstName":32,"lastName":27,"avatar":33,"__typename":36},"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":34,"__typename":35},"https:\u002F\u002Fblog-assets.solidworks.com\u002Fuploads\u002F2025\u002F12\u002Fdraftsight-avatar.jpg-96x96.webp","Avatar","User","NodeWithAuthorToUserConnectionEdge",{"nodes":39,"edges":46,"__typename":51},[40],{"id":41,"name":42,"slug":43,"uri":44,"__typename":45},"dGVybToxOTk2","Tutorials","tutorials","\u002Fmastering\u002Ftutorials\u002F","Taxonomy_mastering",[47],{"isPrimary":48,"node":49,"__typename":50},false,{"id":41,"name":42,"slug":43,"uri":44,"__typename":45},"PostToTaxonomy_masteringConnectionEdge","PostToTaxonomy_masteringConnection",{"nodes":53,"__typename":68},[54,58,63],{"id":55,"name":32,"slug":30,"uri":56,"__typename":57},"dGVybTo5NTk1","\u002Ftags\u002Fdraftsight\u002F","Taxonomy_tag",{"id":59,"name":60,"slug":61,"uri":62,"__typename":57},"dGVybTo5NTk2","Tips and Tricks","tips-tricks","\u002Ftags\u002Ftips-tricks\u002F",{"id":64,"name":65,"slug":66,"uri":67,"__typename":57},"dGVybTo5NTk0","What's New","whats-new","\u002Ftags\u002Fwhats-new\u002F","PostToTaxonomy_tagConnection",{"edges":70,"nodes":77,"__typename":79},[71],{"isPrimary":48,"node":72,"__typename":76},{"id":73,"name":32,"slug":30,"uri":74,"__typename":75},"dGVybTo1NQ==","\u002Fproducts\u002Fdraftsight\u002F","Taxonomy_product","PostToTaxonomy_productConnectionEdge",[78],{"id":73,"name":32,"slug":30,"uri":74,"__typename":75},"PostToTaxonomy_productConnection",{"nodes":81,"edges":105,"__typename":111},[82,96],{"id":83,"name":84,"slug":85,"uri":86,"parentId":87,"disciplines":88,"__typename":95},"dGVybTo1OQ==","2D CAD","2d-cad","\u002Fdisciplines\u002F2d-cad\u002F","dGVybTo1OA==",{"nodes":89,"__typename":94},[90],{"title":84,"uri":91,"parentId":92,"__typename":93},"\u002Fdisciplines\u002Fdesign-engineering\u002F2d-cad","cG9zdDozNzcz","Discipline","Taxonomy_disciplineToDisciplineConnection","Taxonomy_discipline",{"id":87,"name":97,"slug":98,"uri":99,"parentId":100,"disciplines":101,"__typename":95},"Design and Engineering","design-engineering","\u002Fdisciplines\u002Fdesign-engineering\u002F",null,{"nodes":102,"__typename":94},[103],{"title":97,"uri":104,"parentId":100,"__typename":93},"\u002Fdisciplines\u002Fdesign-engineering",[106,109],{"isPrimary":48,"node":107,"__typename":108},{"parentId":87,"id":83,"name":84,"slug":85,"uri":86,"__typename":95},"PostToTaxonomy_disciplineConnectionEdge",{"isPrimary":48,"node":110,"__typename":108},{"parentId":100,"id":87,"name":97,"slug":98,"uri":99,"__typename":95},"PostToTaxonomy_disciplineConnection",{"canonical":113,"title":114,"metaDesc":115,"opengraphAuthor":27,"opengraphDescription":115,"opengraphTitle":9,"opengraphUrl":113,"opengraphSiteName":116,"opengraphPublishedTime":117,"opengraphModifiedTime":118,"twitterTitle":27,"twitterDescription":27,"readingTime":119,"metaRobotsNoindex":120,"__typename":121},"https:\u002F\u002Fblog-contrib-prd.itvpc.solidworks.com\u002Fproducts\u002Fdraftsight\u002Fextend-the-power-of-draftsight-with-customization-part-1-scripts\u002F","Extend the Power of DraftSight with Customization – Part 1, Scripts - Blog Solidworks","You can customize DraftSight! Learn how to access the robust API to create your own commands, or to automate complex or repetitive tasks.","Blog Solidworks","2022-03-31T19:49:37+00:00","2026-02-12T19:38:55+00:00",4,"index","PostTypeSEO","Post","RootQueryToPostConnection",{},{},1796063035623,[128,134,136,138,140,143],{"rel":129,"href":130,"as":131,"type":132,"crossorigin":133},"preload","https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Light-v2.woff2","font","font\u002Fwoff2","anonymous",{"rel":129,"href":135,"as":131,"type":132,"crossorigin":133},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Regular-v2.woff2",{"rel":129,"href":137,"as":131,"type":132,"crossorigin":133},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-SemiBold-v2.woff2",{"rel":129,"href":139,"as":131,"type":132,"crossorigin":133},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002Ffonts\u002F3ds\u002F3ds-Bold-v2.woff2",{"rel":129,"href":141,"as":142},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002F3ds-navigation\u002Fds-header.min.js","script",{"rel":129,"href":144,"as":142},"https:\u002F\u002Fwww.3ds.com\u002Fstatics\u002F3ds-navigation\u002Fds-footer.min.js"]