{"id":269,"date":"2014-10-02T14:40:15","date_gmt":"2014-10-02T14:40:15","guid":{"rendered":"http:\/\/fusion360.wpengine.com\/writing-scripts-using-the-new-fusion-360-api-preview\/"},"modified":"2016-03-15T10:16:09","modified_gmt":"2016-03-15T10:16:09","slug":"writing-scripts-using-the-new-fusion-360-api-preview","status":"publish","type":"post","link":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/","title":{"rendered":"Writing Scripts Using the New Fusion 360 API Preview"},"content":{"rendered":"<p><P>Earlier this month, a new version of Fusion 360 was released and it contains a preview of the API (Application Programming Interface) we\u2019ve been working on. It\u2019s rare that any off-the-shelf product will do everything you need it to do in the way you would like it to. Of course this applies to Fusion as well, but now, by writing scripts using the new Fusion API, you can automate repetitive tasks and create new capabilities.<\/P><P>&nbsp;<\/P><P>Fusion 360 is a product with broad capability in Form, Function and Fabrication that serves a diverse user base. We are planning on providing solutions for 3 main kinds of API users or personas. First, for the complete novice, who primarily wants the ability to record, tweak and playback macros used to automate common or tedious workflows. (we will target the novice in a future release). Second, for the power user (the target of the current release) who wants to script workflows that the product may not yet provide.&nbsp; And thirdly, for professional developers who want to produce add-ins and compatible apps for Fusion 360 (targeted for a future release).<\/P><P>&nbsp;<\/P><P>For the September update, we have a powerful JavaScript based solution for automating and creating custom workflows. There are a lot of great samples provided with Fusion, but my favorite is the gear generator that shows how to create a script with a dialog that processes user inputs to generate gear profiles and then extrudes them into a solid model.<\/P><P>&nbsp;<\/P><P><IMG border=\"0\" alt=\"API1.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129475i1D50E23DCC57786A\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API1.png\" \/><\/P><P>&nbsp;<\/P><P>The API documentation is available on the web along with all of the Fusion product help (shown below). The&nbsp;<STRONG>Fusion 360 API User\u2019s Manual&nbsp;<\/STRONG>contains overview documents that will help get you started. In addition, there are some sample programs included in the help as well as some that are delivered with Fusion.<\/P><P>&nbsp;<\/P><P><IMG border=\"0\" alt=\"API2.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129477i40B4537D0B8F2AC5\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API2.png\" \/><\/P><P>&nbsp;<\/P><P>To explore the gear generator sample and more, let\u2019s get in to the product. The samples along with all of your scripts are available from the Scripts command in the File menu.<\/P><P>&nbsp;<\/P><P><SPAN style=\"font-size: 11.0pt; font-family: 'Arial','sans-serif';\"><IMG border=\"0\" alt=\"API3.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129479i6F5BC4A8DDE79DC0\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API3.png\" \/><\/SPAN><\/P><P>&nbsp;<\/P><P>This brings up the Scripts Manager, where you can explore the sample scripts that are installed with Fusion, or create and debug your own scripts. Selecting a script and clicking edit will bring up a code editor named Brackets, which is included with Fusion 360.<\/P><P>&nbsp;<\/P><P><SPAN style=\"font-size: 11.0pt; font-family: 'Arial','sans-serif';\"><IMG border=\"0\" alt=\"API4.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129481i6DC4D4A0422BFD2A\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API4.png\" \/><\/SPAN><\/P><P>&nbsp;<\/P><P>Brackets have many nice features like color coding, highlighting and auto-completion, which should be a help to both new and experienced JS users.<\/P><P>&nbsp;<\/P><P>Once you are ready to run your script, you can click Run on the Script Manager dialog, or you can click Debug to run your script in debug mode. Stepping through a new script in the debugger is a great way to fully understand the intricacies of how the script is working (or not). Clicking Debug brings up the developer tools window in your default browser; for me this is Chrome.<\/P><P>&nbsp;<\/P><P><SPAN style=\"font-size: 11.0pt; font-family: 'Arial','sans-serif';\"><IMG border=\"0\" alt=\"API5.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129483i7D757F320107E56A\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API5.png\" \/><\/SPAN><\/P><P>&nbsp;<\/P><P>With the debugger, you can walk through the code line by line, looking at the variables along the way, and follow the execution of the program, so that you can identify and fix any bugs or inefficiencies that may exist in the script.<\/P><P>&nbsp;<\/P><P>This release of the API is only a preview, so there\u2019s still a lot that we need to do.&nbsp; However, there is already quite a bit of very useful functionality (as this little blog has attempted to highlight). We are currently working very hard to add Python scripting support as well as a full C++ API for developing addins for future releases.<\/P><P>&nbsp;<\/P><P>We would very much like to hear your comments about the API.&nbsp; Please tell us what you think about the current preview release and also what functionality you would like to see exposed next in upcoming releases.<\/P><P>&nbsp;<\/P><P>Looking forward to hearing your feedback.<\/P><P>&nbsp;<\/P><P>Bankim Charegaonkar<\/P><P>Fusion 360 API Team<\/P><P>&nbsp;<\/P><P>&nbsp;<\/P><P>&nbsp;<\/P><P>&nbsp;<\/P><P>&nbsp;<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p><P><IMG border=\"0\" alt=\"API.png\" align=\"center\" src=\"http:\/\/autodesk.i.lithium.com\/t5\/image\/serverpage\/image-id\/129473i910515DD67021BF9\/image-size\/original?v=mpbl-1&amp;px=-1\" title=\"API.png\" \/><\/P><P>Earlier this month, a new version of Fusion 360 was released and it contains a preview of the API (Application Programming Interface) we\u2019ve been working on.&nbsp;Now, by writing scripts using the new Fusion API, you can automate repetitive tasks and create new capabilities.<\/P><\/p>\n","protected":false},"author":15,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"coauthors":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-fusion","dhig-theme--light"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Writing Scripts Using the New Fusion 360 API Preview - Fusion Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Writing Scripts Using the New Fusion 360 API Preview - Fusion Blog\" \/>\n<meta property=\"og:description\" content=\"Earlier this month, a new version of Fusion 360 was released and it contains a preview of the API (Application Programming Interface) we\u2019ve been working on.&nbsp;Now, by writing scripts using the new Fusion API, you can automate repetitive tasks and create new capabilities.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/\" \/>\n<meta property=\"og:site_name\" content=\"Fusion Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-02T14:40:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-15T10:16:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i2.wp.com\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/12\/placeholders_2@2x.jpg?fit=1594%2C904&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1594\" \/>\n\t<meta property=\"og:image:height\" content=\"904\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"charegb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"charegb\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Writing Scripts Using the New Fusion 360 API Preview - Fusion Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/","og_locale":"en_US","og_type":"article","og_title":"Writing Scripts Using the New Fusion 360 API Preview - Fusion Blog","og_description":"Earlier this month, a new version of Fusion 360 was released and it contains a preview of the API (Application Programming Interface) we\u2019ve been working on.&nbsp;Now, by writing scripts using the new Fusion API, you can automate repetitive tasks and create new capabilities.","og_url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/","og_site_name":"Fusion Blog","article_published_time":"2014-10-02T14:40:15+00:00","article_modified_time":"2016-03-15T10:16:09+00:00","og_image":[{"width":1594,"height":904,"url":"https:\/\/i2.wp.com\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/12\/placeholders_2@2x.jpg?fit=1594%2C904&ssl=1","type":"image\/jpeg"}],"author":"charegb","twitter_card":"summary_large_image","twitter_misc":{"Written by":"charegb","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/#article","isPartOf":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/"},"author":{"name":"charegb","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/3d0a224f39cc6250d061837aba38134a"},"headline":"Writing Scripts Using the New Fusion 360 API Preview","datePublished":"2014-10-02T14:40:15+00:00","dateModified":"2016-03-15T10:16:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/"},"wordCount":656,"commentCount":0,"articleSection":["Fusion"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/","name":"Writing Scripts Using the New Fusion 360 API Preview - Fusion Blog","isPartOf":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#website"},"datePublished":"2014-10-02T14:40:15+00:00","dateModified":"2016-03-15T10:16:09+00:00","author":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/3d0a224f39cc6250d061837aba38134a"},"breadcrumb":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/writing-scripts-using-the-new-fusion-360-api-preview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/"},{"@type":"ListItem","position":2,"name":"Writing Scripts Using the New Fusion 360 API Preview"}]},{"@type":"WebSite","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#website","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/","name":"Fusion Blog","description":"Product updates, tips, tutorials and community news.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/3d0a224f39cc6250d061837aba38134a","name":"charegb","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/04\/ADSK-LOGO-150x150.pngcd7bc5eed7b842e50f5e494314f29c83","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/04\/ADSK-LOGO-150x150.png","contentUrl":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/04\/ADSK-LOGO-150x150.png","caption":"charegb"},"url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/author\/charegb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/tags?post=269"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/coauthors?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}