<?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: Importing a File via API (and other feedback) in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5365843#M21808</link>
    <description>&lt;P&gt;You're right about reading a file being a necessary step in many workflows.&amp;nbsp; Javascript itself doesn't support reading and writing files from the local file system for security reasons.&amp;nbsp; However, since we're using Javascript in a non-typical way and understood the need for file access we've added some additional functions in the Fusion API that can be used from Javascript.&amp;nbsp; If you look at the Fusion 360 API help there is a Javascript specific topic on the User Manual portion of the documentation that describes the functions for file IO.&amp;nbsp; Here's a direct link to the topic: &lt;A href="http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/JavaScriptSpecific.htm" target="_blank"&gt;http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/JavaScriptSpecific.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2014 18:30:14 GMT</pubDate>
    <dc:creator>ekinsb</dc:creator>
    <dc:date>2014-10-28T18:30:14Z</dc:date>
    <item>
      <title>Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5269389#M21805</link>
      <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just diving into the API and I'm liking what I've seen so far! A few notes already on how I'm using it. I love that the files are available in the file tree. I strongly dislike&amp;nbsp;using brackets and the debugger is pretty rough too (I can't get copy and paste to work), but I am using my preferred text editor, Sublime Text 3 and that seems to be working well. Additionally I really like that it uses flat HTML and JS files - why this is cool is that you can include other javascript libraries like Underscore.js for instance. Please do not change this!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying right now to automatically import a file given a directory. I found an example in the previous forum thread about importing a CSV, but I am trying to import a PLY (a mesh) into Fusion 360. I can't figure out in the documentation how to do this. Thanks for the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:49:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5269389#M21805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-11T21:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5271605#M21806</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for you feedback and it's good that you're having some success with the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an early release and there's still a lot of functionality missing.&amp;nbsp; I'm not sure what you want to do with the mesh data you read from the PLY file, but the ability to create a mesh object through the API is not currently supported.&amp;nbsp; It would be interesting to learn what you're trying to accomplish.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:08:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5271605#M21806</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2014-09-12T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5358729#M21807</link>
      <description>&lt;P&gt;I am also trying to figure out how I could import a file to use in the API. The use case is the import of a text file that contains the data needed to generate a 3D model. For example outlines for curves, placement data for components, etc. I need to import the data, parse it, and then generate the 3D model. Ive done this in some other 3D tools and are looking to build out a similar import routine for Fusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing I could just have the user copy/paste the entire file contexts into a text input box but this seems very rudimentary. The text files can often be very large if its a complex model and that would be fine for a proof of concept but eventually I would need users to be able to upload the file directly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Marc&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:39:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5358729#M21807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-24T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5365843#M21808</link>
      <description>&lt;P&gt;You're right about reading a file being a necessary step in many workflows.&amp;nbsp; Javascript itself doesn't support reading and writing files from the local file system for security reasons.&amp;nbsp; However, since we're using Javascript in a non-typical way and understood the need for file access we've added some additional functions in the Fusion API that can be used from Javascript.&amp;nbsp; If you look at the Fusion 360 API help there is a Javascript specific topic on the User Manual portion of the documentation that describes the functions for file IO.&amp;nbsp; Here's a direct link to the topic: &lt;A href="http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/JavaScriptSpecific.htm" target="_blank"&gt;http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/JavaScriptSpecific.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 18:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5365843#M21808</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2014-10-28T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5756913#M21809</link>
      <description>&lt;P&gt;How does this code actually work? The API says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;adsk.copyFile(fromFilename, toFilename)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But where does it actually copy to in order to import the file into your Fusion 360 folders? I tried just putting 'C:\temp\file.ipt'' in the fromFilename but I get an error that says "Failed: File Does Not Exist"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:22:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5756913#M21809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5757060#M21810</link>
      <description>&lt;P&gt;The copyFile function provides the ability to copy files on your local hard drive and is completely independent of the files on A360.&amp;nbsp; Because of security issues, JavaScript doesn't support basic file access and this function is to work around this limitation.&amp;nbsp; Here's an example of how it might be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;adsk.copyFile('C:\\Temp\\Test.txt', 'C:\\Temp\\NewTest.txt');&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2015 23:08:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5757060#M21810</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2015-08-04T23:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758673#M21811</link>
      <description>&lt;P&gt;Hmm, so is there no API method to import a file into Fusion360?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758673#M21811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T20:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758688#M21812</link>
      <description>&lt;P&gt;What type of file?&amp;nbsp; For the types that Fusion currently understands, (STEP, SAT, IGES, etc.),&amp;nbsp;API support should be coming in the next major release which is currently scheduled for later in September.&amp;nbsp; Import of a mesh file (stl or obj) is already supported through the Meshbodies.add method.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:29:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758688#M21812</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2015-08-05T20:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758709#M21813</link>
      <description>&lt;P&gt;Maybe even just Fusion360 archive files. Just need to import a set of files into a directory by script.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758709#M21813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T20:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758744#M21814</link>
      <description>&lt;P&gt;Do you mean import a set of files &lt;U&gt;from&lt;/U&gt; a directory.&amp;nbsp; What exactly is it that you're trying to accomplish?&amp;nbsp; Is it something you can do through the UI, even though it might be a bit tedious?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:53:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758744#M21814</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2015-08-05T20:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758823#M21815</link>
      <description>&lt;P&gt;Yes, import a set of files from a directory. Of course, it would be ideal if the directory was a internet location. Trying to setup a one click method to import tutorial class materials.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 21:30:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5758823#M21815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5768076#M21816</link>
      <description>&lt;P&gt;I noticed the parts4cad addon has a video where they are able to import models from their website into Fusion 360 pretty seamlessly. Its not a file import directly but its pretty close. Is the API they are using for this publicly available? I dont see parts4cad in the App Exchange so Im not sure if its live or if this video is marketing something thats not yet available.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 16:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5768076#M21816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T16:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a File via API (and other feedback)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5768946#M21817</link>
      <description>&lt;P&gt;The parts4cad addin is using an undocumented API from our old unsupported legacy Python API to pump a local filename across a websocket to the insert component command which then starts a UI interactive insert/move workflow. &amp;nbsp;It is not a usable insert component API, and it will be disabled as soon as that workflow can be completed with the current&amp;nbsp;API and the parts4cad addin is updated. &amp;nbsp;Parts4cad is included in Fusion now, and is available in the Insert toolbar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next major update&amp;nbsp;will include a component insert API (Occurrences.addByInsert which will create an Occurrence of a DataFile) that will allow the insert of a component from an existing file in your project. &amp;nbsp;If you have a local file, you can use the existing uploadFile or uploadAssembly to add the file to a project and then insert it. &amp;nbsp;The next update will also include an ImportManager which will allow for the insertion of local files (IGES, STEP, SAT, SMT, F3d) into a document (you should be able to optionally import into a new Component and create any instances of that within the document).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 00:09:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/importing-a-file-via-api-and-other-feedback/m-p/5768946#M21817</guid>
      <dc:creator>KrisKaplan</dc:creator>
      <dc:date>2015-08-13T00:09:20Z</dc:date>
    </item>
  </channel>
</rss>

