<?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: How to save all individual sub-assemblies and their parts from an assembly in STEP? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10894663#M6892</link>
    <description>&lt;P&gt;It's still not clear to me.&amp;nbsp; If you have an assembly like this, what STEP files would you expect?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Structure.png" style="width: 269px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1014138iB81C44C9CAA8F412/image-size/large?v=v2&amp;amp;px=999" role="button" title="Structure.png" alt="Structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 21:03:41 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2022-01-20T21:03:41Z</dc:date>
    <item>
      <title>How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10889590#M6889</link>
      <description>&lt;P&gt;After uploading the assembly step file in fusion 360&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to save all the&amp;nbsp; sub-assembly parts individually&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 06:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10889590#M6889</guid>
      <dc:creator>saikrishnaVKARF</dc:creator>
      <dc:date>2022-01-19T06:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10891527#M6890</link>
      <description>&lt;P&gt;Are you trying to do this interactively in the product or are you trying to write a program to do this?&amp;nbsp; And, what exactly is it you are trying to save? Each of the subassemblies within the main assembly because that would include the parts? Or are you wanting to save each part?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:34:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10891527#M6890</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-01-19T19:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10892434#M6891</link>
      <description>I like to save each of the subassemblies separately&lt;BR /&gt;what exactly is, to save as files in folders like nested bom</description>
      <pubDate>Thu, 20 Jan 2022 04:46:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10892434#M6891</guid>
      <dc:creator>saikrishnaVKARF</dc:creator>
      <dc:date>2022-01-20T04:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10894663#M6892</link>
      <description>&lt;P&gt;It's still not clear to me.&amp;nbsp; If you have an assembly like this, what STEP files would you expect?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Structure.png" style="width: 269px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1014138iB81C44C9CAA8F412/image-size/large?v=v2&amp;amp;px=999" role="button" title="Structure.png" alt="Structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 21:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10894663#M6892</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-01-20T21:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10895335#M6893</link>
      <description>&lt;P&gt;how to save that subassembly components&lt;/P&gt;&lt;P&gt;sub 1&lt;/P&gt;&lt;P&gt;sub 2&lt;/P&gt;&lt;P&gt;sub 3&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 04:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10895335#M6893</guid>
      <dc:creator>saikrishnaVKARF</dc:creator>
      <dc:date>2022-01-21T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10895700#M6894</link>
      <description>&lt;P&gt;I didn't do a lot of testing, but I think this will do what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def exportSTEP():
    try:
        app: adsk.core.Application = adsk.core.Application.get()
        ui: adsk.core.UserInterface = app.userInterface

        design: adsk.fusion.Design = app.activeProduct
        root = design.rootComponent

        processedComponents = []
        occ: adsk.fusion.Occurrence
        for occ in root.occurrences:
            comp = occ.component

            # Check to see if this component is an assembly.
            if comp.occurrences.count &amp;gt; 0:
                found = False
                checkComp: adsk.fusion.Component
                for checkComp in processedComponents:
                    if comp == checkComp:
                        found = True
                        break

                if not found:
                    # Export this occurrence.
                    filename = 'C:/Temp/' + comp.name + '.step'
                    stepExport = design.exportManager.createSTEPExportOptions(filename, comp)
                    design.exportManager.execute(stepExport)

                    processedComponents.append(comp)
    except:
        ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 08:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/10895700#M6894</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-01-21T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/11209788#M6895</link>
      <description>&lt;P&gt;Hi Brain!&lt;/P&gt;&lt;P&gt;while uploading a step file of top assembly which contains four subassemblies&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i able to save the four subassemblies individually&amp;nbsp;&lt;/P&gt;&lt;P&gt;can&amp;nbsp; u help me in this&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 07:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/11209788#M6895</guid>
      <dc:creator>saikrishnaVKARF</dc:creator>
      <dc:date>2022-06-02T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to save all individual sub-assemblies and their parts from an assembly in STEP?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/11244189#M6896</link>
      <description>&lt;P&gt;What exactly is it you're trying to accomplish? It's still unclear to me what you need because if you only save subassemblies it will be likely you'll miss some parts. There are also cases where some subassemblies will end up being saved more than once because they might exist in other subassemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see from the code above, that any component can be saved as a STEP file. It doesn't matter if that component represents the entire assembly, any subassembly, or any part. It's just a matter of determining which components you want to export and that's what is unclear to me.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 02:50:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-save-all-individual-sub-assemblies-and-their-parts-from/m-p/11244189#M6896</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-06-19T02:50:17Z</dc:date>
    </item>
  </channel>
</rss>

