<?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: multiple DXF export in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7553666#M17227</link>
    <description>&lt;P&gt;By the way - in case you havn't "manually installed" an add-in before here's the process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manual Install:&lt;/STRONG&gt;&lt;BR /&gt;Extract the attached zip file wherever you want.&lt;BR /&gt;In Fusion open the Add-ins dialog, on the Add-Ins tab click the small green plus icon near the text "My Add-Ins" (in the list of add-ins).&lt;BR /&gt;Then locate and select the add-in folder (previously extracted from the zip) and say OK.&lt;BR /&gt;Check the "Run on startup" checkbox, click RUN and you will find the addin under the sketch menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do end up using my fission library in your own projects do yourself a favor and avoid copy-pasting folders of code. On Windows you can create "links" with this command...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Execute from directory you wish to create the link within (run this from the "cmd" prompt)&lt;/P&gt;&lt;P&gt;mklink /J fission X:\path\to\fission&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 17:39:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-17T17:39:19Z</dc:date>
    <item>
      <title>multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7544272#M17220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this post,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-design-validate/export-multiple-sketches-into-one-dxf/td-p/5673570" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-design-validate/export-multiple-sketches-into-one-dxf/td-p/5673570&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and while this is exactly what I need, I'd settle for just exporting multiple sketch as multiple dxfs, but doing it in one go, rather than individually. So simply selecting all the sketches I need to export (maybe 10?) then scripting the export, and ideally using the sketch name as the file name (if only right clicking on them would allow this!!!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find anything out there already?&amp;nbsp; I'm guessing this is the kind of thing that could be scripted? If I know it can be done, I can invest some time in learning how, but please do direct me to anything that might help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is it not much more difficult to do the original request? only with sketch names as layer names?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for any help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 22:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7544272#M17220</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-14T22:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7548316#M17221</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be doable. Please refer to the following sample how to export all selected sketch as separate dxf files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import adsk.core, adsk.fusion, traceback
import os

def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui = app.userInterface
        
        sketches = []
        for seln in ui.activeSelections:
            sketch = adsk.fusion.Sketch.cast(seln.entity)
            if sketch:
                sketches.append(sketch)

        folderdlg = ui.createFolderDialog()
        folderdlg.title = 'Please select a folder to save dxf files:' 
        res = folderdlg.showDialog()
        if res == adsk.core.DialogResults.DialogOK:
            folder = folderdlg.folder
            for sketch in sketches:
                fullpath = os.path.join(folder, sketch.name)
                sketch.saveAsDXF(fullpath + '.dxf')
                    
        else:
            ui.messageBox('No folder is selected.')

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 03:04:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7548316#M17221</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2017-11-16T03:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7550810#M17222</link>
      <description>&lt;P&gt;Thank you, Marshall!&lt;/P&gt;&lt;P&gt;This looks very interesting. I'll work my way through it and report back.&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 19:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7550810#M17222</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-16T19:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7551380#M17223</link>
      <description>&lt;P&gt;Great, it works of course, Thanks. This is so helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I first copied it in, I grabbed it from the "solution!" dialogue box in this forum, and it came into spyder with no indentation? So I VERY slowly worked through it, adding the indentation (This is my first exploration into&amp;nbsp;Python - I'm not a developer). After some trial and error, I got it working - only when I came back here to thank you, I can clearly see all the indentation is in your original post!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But,&amp;nbsp;A few hours introduction to python and trying to understand how this script works is probably time well spent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:47:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7551380#M17223</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-16T22:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7551735#M17224</link>
      <description>&lt;P&gt;I've jumped through the hoops to take multiple sketches and output a single DXF with each sketch on its own layer (ok, so it's 2 fixed sketches but it could be easily modified to an arbitrary number&amp;nbsp;of sketches and layers). Let me know if you'd like to see the code... or maybe I'll feel inspired enough to just publish a new add-in this weekend to do this &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 03:24:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7551735#M17224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T03:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7552436#M17225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I'd be very interested to see the code. Currently I use Vectorworks to import multiple dxfs into a file, (it allocates file names to layer names in this process), then export again... but automating as much as possible helps to stream line work flow. I'm somewhat out my comfort zone with python API scripting... but the more I experiment the better I'll get. Its just all a bit daunting at the start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 10:17:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7552436#M17225</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-17T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7553657#M17226</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5005550"&gt;@JYZMT&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I'd be very interested to see the code. Currently I use Vectorworks to import multiple dxfs into a file, (it allocates file names to layer names in this process), then export again... but automating as much as possible helps to stream line work flow. I'm somewhat out my comfort zone with python API scripting... but the more I experiment the better I'll get. Its just all a bit daunting at the start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ya, I was less than impressed with the API design myself - so I abstracted it away &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I need to get around to publishing my framework on GitHub - feel free to use my "fission" library in your own projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, see line 95 in the attached source - that's a good place to start hacking from&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 17:34:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7553657#M17226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7553666#M17227</link>
      <description>&lt;P&gt;By the way - in case you havn't "manually installed" an add-in before here's the process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manual Install:&lt;/STRONG&gt;&lt;BR /&gt;Extract the attached zip file wherever you want.&lt;BR /&gt;In Fusion open the Add-ins dialog, on the Add-Ins tab click the small green plus icon near the text "My Add-Ins" (in the list of add-ins).&lt;BR /&gt;Then locate and select the add-in folder (previously extracted from the zip) and say OK.&lt;BR /&gt;Check the "Run on startup" checkbox, click RUN and you will find the addin under the sketch menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do end up using my fission library in your own projects do yourself a favor and avoid copy-pasting folders of code. On Windows you can create "links" with this command...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Execute from directory you wish to create the link within (run this from the "cmd" prompt)&lt;/P&gt;&lt;P&gt;mklink /J fission X:\path\to\fission&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 17:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7553666#M17227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T17:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7554376#M17228</link>
      <description>&lt;P&gt;Thanks, I'll take a look over the weekend. I can really see the power of scripting, but its quite a learning curve. Lets see how far I get.....&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 22:46:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7554376#M17228</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-17T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7560148#M17229</link>
      <description>&lt;P&gt;errrrrrr yikes. This is way beyond me at the moment!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How come there are 2 .py files in there? does the main script talk to the merging script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will have to get my head around some of this, but it&amp;nbsp;is going to take me a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 questions before I even get going if that's ok?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly,&amp;nbsp;using the merge dxf code, any idea what might happen when 2 sources have the same name? So in the example here, we are selecting multiple sketches and asking it to export multiple dxfs.... if 2 have the same name, it simply overrides one of them, and you only get one. Logical I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the merge dxf code, would it do the same with layers. I.e. if you had 2&amp;nbsp;of "Sketch A", you would only get one layer (sketch A) with the geometry from only one sketch.... or would it merge the geometry from both sketches into a single layer (called Sketch A)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I ask is I probably only need 5-10 layer definitions, but with lots of geometry from lots of sketches/bodies/components. So, if it can't merge, I'm going to try and combine multiple geometry into a single sketch inside fusion before I export. But if the merge dxf approach DOES have the ability to merge geometry from lots of sketches into a single layer, then maybe I don't do it in fusion, but through the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question, when creating a dxf layer name, do you think its possible to combine the name of the sketch, and join it to a user parameter input?&lt;/P&gt;&lt;P&gt;So the sketch name might be "CUT_PLY_"&lt;/P&gt;&lt;P&gt;A specific user parameter (for Ply) might be 18&lt;/P&gt;&lt;P&gt;So the dxf name would be CUT_PLY_18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any idea, but don't worry if not. Thanks for your help so far.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 21:45:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7560148#M17229</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-20T21:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7560487#M17230</link>
      <description>&lt;P&gt;Oh, there's more than 2 .py files in there - look in the fission folder &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DXF files are messy - dxf_merge.py is largely a complicated hack doing as little DXF processing as possible. It doesn't actually generate the DXF data (but it does tweak it)&lt;STRONG&gt; the code first saves sketches to temporary DXF files&lt;/STRONG&gt; (from line 86 in the main py file) then it passes that/those file name(s) to the DxfFileMerger object along with layer name and color code. Then eventually the merged DXF is saved (line 100 in the main py file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function signature is &lt;STRONG&gt;add_file(dxf_filename, layer_name, layer_color)&lt;/STRONG&gt;. You can call add_file as many times as you like, each call will include the DXF file on a layer in the final DXF output - i advise against reusing a layer name as the code has no guards to prevent it and i'm not really sure how other programs would handle that case - but it could be modified to do so (a simpler solution to implement would be to project all of the sketches you want merged into a new sketch then export that one).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layer_color is actually a color code not something standard like a hex value or string - if you look in the resources/colors folder you'll see an HTML file, if you run a simple web server serving this folder and browse that HTML file you can hover over the various color tiles and it will tell you what code it is... but to make things easier here's the table with numbers overlayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ColorTable.png" style="width: 286px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428919iE624C7211DD35546/image-size/large?v=v2&amp;amp;px=999" role="button" title="ColorTable.png" alt="ColorTable.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 00:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7560487#M17230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T00:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7561139#M17231</link>
      <description>&lt;P&gt;Thanks for this. Like I say, its going to take me a while to get my head around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found this, if it helps you at all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.opendesk.cc/blog/opendesk-at-autodesk" target="_blank"&gt;https://www.opendesk.cc/blog/opendesk-at-autodesk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the git hub files are listed in the article but here is the dxf exporter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/opendesk/fusion360-dxf-export" target="_blank"&gt;https://github.com/opendesk/fusion360-dxf-export&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again its a dauntingly long piece of code, but this, along with yours might gives me a good point to start hacking from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll let you know if I get anywhere. First though, its more introduction to Python you tube tutorials!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7561139#M17231</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2017-11-21T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7561454#M17232</link>
      <description>Interesting find, thanks for sharing. It looks like the opendesk code is&lt;BR /&gt;built to generate dxf files directly from bodies - compleatly within python&lt;BR /&gt;code. The code is not written for easy reuse unfortunatly and it looks like&lt;BR /&gt;it can only support linear and circular curve segments (lines, arcs and&lt;BR /&gt;circles not splines or ellipses or fixedsplines as generated when you split&lt;BR /&gt;a curved body at any angle not aligned with the curve plane). My code gets&lt;BR /&gt;around the complexities of these other curves by letting Fusion generate&lt;BR /&gt;the dxf code. Just something to be aware of and it might help you&lt;BR /&gt;understand them both to know.&lt;BR /&gt;&lt;BR /&gt;I'm sure that my main .py file will have a comment pointing to a rather&lt;BR /&gt;massive Autodesk pdf describing the dxf format and "standard" codes. If not&lt;BR /&gt;I'm sure I have it bookmarked, let me know if you can't find it and would&lt;BR /&gt;like the link.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2017 11:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/7561454#M17232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459067#M17233</link>
      <description>&lt;P&gt;Does anyone have any idea how to get that opendesk ADDIN running? I have tried but it doesn't seem to be working out for me,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459067#M17233</guid>
      <dc:creator>Scottjb</dc:creator>
      <dc:date>2020-04-21T13:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459093#M17234</link>
      <description>&lt;P&gt;It did not work for me either. I've been in contact with open desk. The 2 people that did have long since left the company, and they are not pursuing this as a tool. It was an experiment, but that was as far as they took it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459093#M17234</guid>
      <dc:creator>JYZMT</dc:creator>
      <dc:date>2020-04-21T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459126#M17235</link>
      <description>&lt;P&gt;Strange, clearly they put a lot of time and effort into it. Would have been great to get it working and test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Scott&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459126#M17235</guid>
      <dc:creator>Scottjb</dc:creator>
      <dc:date>2020-04-21T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459391#M17236</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5005550"&gt;@JYZMT&lt;/a&gt; and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6091509"&gt;@Scottjb&lt;/a&gt;, follow these instructions :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Clone the repo &lt;A href="https://github.com/opendesk/fusion360-dxf-export" target="_blank"&gt;https://github.com/opendesk/fusion360-dxf-export&lt;/A&gt; or download the zip file and unzip it.&lt;/LI&gt;
&lt;LI&gt;Open Opendesk-dxf-exporter.manifest in a text editor&lt;/LI&gt;
&lt;LI&gt;Change "addin" to "script" at line 3&lt;/LI&gt;
&lt;LI&gt;Save the file&lt;/LI&gt;
&lt;LI&gt;Open Opendesk-dxf-exporter.py in a text editor&lt;/LI&gt;
&lt;LI&gt;Change path at line 256 to a location on your computer. On Windows, you have to double the separator : C:&lt;STRONG&gt;\\&lt;/STRONG&gt;Users&lt;STRONG&gt;\\&lt;/STRONG&gt;FolderA&lt;STRONG&gt;\\&lt;/STRONG&gt;FolderB&lt;/LI&gt;
&lt;LI&gt;Search for the "make_model_layer_dict" function (line 379) and move "global MODEL_LAYER_DICT" (line 381) at the beginning of the function (line 380)&lt;/LI&gt;
&lt;LI&gt;Save the file&lt;/LI&gt;
&lt;LI&gt;Open Fusion 360&lt;/LI&gt;
&lt;LI&gt;Open the "Script and Addins" dialog under TOOLS tab &amp;gt; MAKE menu&lt;/LI&gt;
&lt;LI&gt;Click on the green "+" next to "My Scripts" and select the folder that contains the files Opendesk-dxf-exporter.py and Opendesk-dxf-exporter.manifest&lt;/LI&gt;
&lt;LI&gt;Select the script in the list&lt;/LI&gt;
&lt;LI&gt;Click on Run&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Voila!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested with the file the authors provided here: &lt;A href="http://a360.co/1sYVDbz" target="_blank"&gt;http://a360.co/1sYVDbz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459391#M17236</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2020-04-21T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459737#M17237</link>
      <description>&lt;P&gt;Fantastic!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great post, got it working now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 16:30:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/9459737#M17237</guid>
      <dc:creator>Scottjb</dc:creator>
      <dc:date>2020-04-21T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: multiple DXF export</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/10973071#M17238</link>
      <description>&lt;P&gt;I've made a slightly different version from&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/561768"&gt;@marshaltu&lt;/a&gt;&amp;nbsp;which only exports sketches that have "DXF" in their name. This is useful for me because I have designs I use for laser cutting and I only need to export a few specific sketches and not the others. Hope it's useful for someone else.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#Author-Sam Chaney
#Description-Export multiple sketches as DXF if the sketch name contains 'DXF'

import adsk.core, adsk.fusion, adsk.cam, traceback, os

def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface
        design = adsk.fusion.Design.cast(app.activeProduct)
        active_component = design.activeComponent
        sketches = active_component.sketches

        def is_dxf(sketch):
            if 'DXF' in sketch.name:
                return True

        folder_dialogue = ui.createFolderDialog()
        folder_dialogue.title = 'Select folder to export all DXFs'
        result = folder_dialogue.showDialog()

        if result == adsk.core.DialogResults.DialogOK: # If the user clicks on the "Select Folder" button
            export_folder = folder_dialogue.folder
            for sketch in sketches:
                if is_dxf(sketch):
                    full_path = os.path.join(export_folder, sketch.name) + '.dxf'
                    sketch.saveAsDXF(full_path)
        else: # If the user clicks on the "Cancel" button 
            ui.messageBox(f'No folder selected')

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 07:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/multiple-dxf-export/m-p/10973071#M17238</guid>
      <dc:creator>therealsamchaney</dc:creator>
      <dc:date>2022-02-26T07:12:44Z</dc:date>
    </item>
  </channel>
</rss>

