<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automating a python script for Fusion360 in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776690#M14212</link>
    <description>&lt;P&gt;If you're just translating existing files and not doing any modeling, you should look at Forge. It's a set of web services and supports file translations.&amp;nbsp; Because it's a web service you can use it from any platform that's capable of using a REST ALL. forge.autodesk.com&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 19:44:11 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2019-05-07T19:44:11Z</dc:date>
    <item>
      <title>Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776451#M14206</link>
      <description>&lt;P&gt;I was recently working on a script to convert a .sldprt file to .stl and I got helped out by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;. The original question is posted&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/set-up-fusion360-python-apis/m-p/8776346/highlight/false#M7822" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. As of now, I have to open Fusion360, click at the add-ins option manually and then run my script. However, my original aim was to make the process automated. Is there a way that I can run the python script I wrote just by double-clicking it or maybe from a command line instead of the Autodesk Fusion360 GUI interface?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 17:57:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776451#M14206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776459#M14207</link>
      <description>&lt;P&gt;You can do IPC in your python script. So, for example, you could open a socket and wait (on a separate thread) for an external program to connect and, e.g. send a filename to convert or something, and then post a message to the main thread to perform the conversion.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 18:01:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776459#M14207</guid>
      <dc:creator>JesusFreke</dc:creator>
      <dc:date>2019-05-07T18:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776478#M14208</link>
      <description>&lt;P&gt;Thanks for your response, but how do I start the script from within Fusion360 using Python? So lets say I have file.sldprt, how do I run the python script (which, as of now, I start from Fusion360 interface). Because double-clicking the script gives import errors (for adsk.fusion etc). Does that make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 18:09:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776478#M14208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T18:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776580#M14209</link>
      <description>&lt;P&gt;You can create an add-in that automatically starts when fusion starts. In the add-in, you would open a socket and start listening for connections (on a separate thread). You can then connect to that socket from an external program and pass data to it, which your add-in can then take action on.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 18:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776580#M14209</guid>
      <dc:creator>JesusFreke</dc:creator>
      <dc:date>2019-05-07T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776586#M14210</link>
      <description>&lt;P&gt;What your describing is one of the primary reasons the add-in architecture exists.&amp;nbsp; With an add-in you can add a button into the UI anywhere you want and execute your functionality by clicking the button just the same as any other Fusion command.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-9701BBA7-EC0E-4016-A9C8-964AA4838954" target="_blank" rel="noopener"&gt; Creating a Script or Add-In&lt;/A&gt; topic and the other topics about working with the UI; &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-F31C76F0-8C74-4343-904C-68FDA9BB8B4C" target="_blank" rel="noopener"&gt;User Interface Customization&lt;/A&gt;, &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051" target="_blank" rel="noopener"&gt;Commands&lt;/A&gt;,&amp;nbsp; and &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8B9041D5-75CC-4515-B4BB-4CF2CD5BC359" target="_blank" rel="noopener"&gt;Command Inputs&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 18:52:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776586#M14210</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-05-07T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776618#M14211</link>
      <description>&lt;P&gt;Thanks for your response. I will write an add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now, I am using Windows Operating System, but my ultimate goal is to make this run on a Linux server. I just found out that Fusion360 is not Linux compatible. Does that mean I won't be able to transfer this set-up on Linux? I was wondering that all the conversion (.sldprt to .stl) is being done on the cloud and then downloaded, so it might be possible. However, since the&amp;nbsp;&lt;EM&gt;environment&amp;nbsp;&lt;/EM&gt;is Windows base (adsk.fusion etc), this makes me think I won't be able to.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776618#M14211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T19:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776690#M14212</link>
      <description>&lt;P&gt;If you're just translating existing files and not doing any modeling, you should look at Forge. It's a set of web services and supports file translations.&amp;nbsp; Because it's a web service you can use it from any platform that's capable of using a REST ALL. forge.autodesk.com&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776690#M14212</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-05-07T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776711#M14213</link>
      <description>&lt;P&gt;Thanks for the response. I will start looking into Forge (not sure what you mean by REST ALL). Can you give me any direction on how to proceed with Python to use Forge?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:51:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776711#M14213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776722#M14214</link>
      <description>&lt;P&gt;Auto correct got me. It should be REST API. Forge is exposed through a RESTful API.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:56:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776722#M14214</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-05-07T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776757#M14215</link>
      <description>&lt;P&gt;Got it. I will take look into the REST API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for asking this again, but is there any useful example available that deals with FORGE imports/exports online? Like&amp;nbsp;&lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3f24e9e8-422d-11e5-937b-f8b156d7cd97" target="_blank" rel="noopener"&gt;this&lt;/A&gt;&amp;nbsp;for local conversions. The closest thing I found was&amp;nbsp;&lt;A href="https://forge.autodesk.com/blog/sample-scripts-basic-workflow-translating-model-python" target="_blank" rel="noopener"&gt;this&lt;/A&gt;&amp;nbsp;code online but I believe this too is insufficient, as it does not deal with any import/export.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have started searching too, but my first preference is to find something online that gives me some direction for import export, as there is no use re-inventing the wheel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all your help.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 20:08:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8776757#M14215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T20:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8777242#M14216</link>
      <description>&lt;P&gt;There are several different services that make up the Forge API.&amp;nbsp; The &lt;A href="https://forge.autodesk.com/api/data-management-cover-page/" target="_blank" rel="noopener"&gt;Data Management API&lt;/A&gt;" provides the ability to upload and download from Forge.&amp;nbsp; The &lt;A href="https://forge.autodesk.com/api/model-derivative-cover-page/" target="_blank" rel="noopener"&gt;Model Derivative API&lt;/A&gt; supports the ability to convert between more than 60 different file formats, including STL.&amp;nbsp; The links above will take you to pages that have links to the developer guide, tutorials and the API reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing to be aware of when using Forge that's very different from the Fusion API is that you have to deal with authorization to access and use the API.&amp;nbsp; With Fusion you're using the user's authorization to gain access and don't have to mess with it.&amp;nbsp; It adds quite a bit to the complexity.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 04:42:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/8777242#M14216</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-05-08T04:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automating a python script for Fusion360</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/10290470#M14217</link>
      <description>Hi! I wanted to ask if you were able to successfully implement a solution using an Add-In and/or socket. If so, are you willing to release the part of your code that contains your implementation?</description>
      <pubDate>Tue, 04 May 2021 18:50:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/automating-a-python-script-for-fusion360/m-p/10290470#M14217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-04T18:50:28Z</dc:date>
    </item>
  </channel>
</rss>

