<?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: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API) in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10915014#M6728</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try to import the two STL files into Meshmixer to compare the meshes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the two STL files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jan 2022 06:59:56 GMT</pubDate>
    <dc:creator>JeromeBriot</dc:creator>
    <dc:date>2022-01-29T06:59:56Z</dc:date>
    <item>
      <title>Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10914680#M6727</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! We are running into some file size issues when running an add-in we are developing. The goal is to export the main body (‘ShellBody’) as an STL with custom export settings. When this is done directly in Fusion, we get a resultant STL file with a size of ~4MB. When the same action is done via the API, we get a resultant STL file with a size of ~58MB. I’ve included screenshots of the settings used in Fusion and the code in our add-in script. Screenshots are attached of the addin code vs manual selection on Fusion.&amp;nbsp;Does anyone know why there is such a large discrepancy between the two methods? Insight it would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 23:32:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10914680#M6727</guid>
      <dc:creator>knightsAHN63</dc:creator>
      <dc:date>2022-01-28T23:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10915014#M6728</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try to import the two STL files into Meshmixer to compare the meshes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the two STL files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 06:59:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10915014#M6728</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2022-01-29T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10917562#M6729</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mrs. KinghtsAHN63,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;STL files came in two forms: &lt;FONT color="#993366"&gt;&lt;EM&gt;&lt;STRONG&gt;binary&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt; and &lt;FONT color="#993366"&gt;&lt;EM&gt;&lt;STRONG&gt;ASCII&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;How to select the proper one?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;STLExportOptions Object&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;&lt;A href="mk:@MSITStore:D:\Fusion360\Documentation\Autodesk\FusionAPI_June_2020.chm::/HTML/STLExportOptions_isBinaryFormat.htm" target="_blank" rel="noopener"&gt;isBinaryFormat&lt;/A&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Indicates if the STL file is to be an ASCII or binary STL format. The default is true.&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 06:14:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10917562#M6729</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2022-01-31T06:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919268#M6730</link>
      <description>&lt;P&gt;Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Both STL files were exported in Binary format, you can see the line of code in the second screenshot that I attached. I have attached two 'cube' examples to this reply as well, you can see the one exported in Fusion with the same settings is 57kb and the one using the API is 4,895kb.&lt;BR /&gt;Code is:&lt;BR /&gt;stlExportOptions = exportManager.createSTLExportOptions(root, fileName)&lt;BR /&gt;stlExportOptions.isBinaryFormat = True&lt;BR /&gt;stlExportOptions.meshRefinement = 3&lt;BR /&gt;stlExportOptions.surfaceDeviation = 0.004 # Units: Centimeters&lt;BR /&gt;stlExportOptions.normalDeviation = 0.199927 # Units: Radians&lt;BR /&gt;stlExportOptions.maximumEdgeLength = 2.1 # Units: Centimeters&lt;BR /&gt;stlExportOptions.aspectRatio = 3.795&lt;BR /&gt;&lt;BR /&gt;File exported from Fusion has same settings as described above^&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 19:27:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919268#M6730</guid>
      <dc:creator>knightsAHN63</dc:creator>
      <dc:date>2022-01-31T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919291#M6731</link>
      <description>&lt;P&gt;Hi Jerome,&lt;BR /&gt;&lt;BR /&gt;For sure, please find attached! Just opened in Meshmixer and definitely the API one looks 'crisper'... trying to understand what is causing the discrepancy. Here are two 'cube' examples, the one directly from Fusion is 57KB and the one from the API is 4,895KB. Please let me know if you have any ideas, thank you!&lt;BR /&gt;&lt;BR /&gt;Code is:&lt;BR /&gt;stlExportOptions = exportManager.createSTLExportOptions(root, fileName)&lt;BR /&gt;stlExportOptions.isBinaryFormat = True&lt;BR /&gt;stlExportOptions.meshRefinement = 3&lt;BR /&gt;stlExportOptions.surfaceDeviation = 0.004 # Units: Centimeters&lt;BR /&gt;stlExportOptions.normalDeviation = 0.199927 # Units: Radians&lt;BR /&gt;stlExportOptions.maximumEdgeLength = 2.1 # Units: Centimeters&lt;BR /&gt;stlExportOptions.aspectRatio = 3.795&lt;BR /&gt;&lt;BR /&gt;File exported from Fusion has same settings as described above^&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 19:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919291#M6731</guid>
      <dc:creator>knightsAHN63</dc:creator>
      <dc:date>2022-01-31T19:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919354#M6732</link>
      <description>&lt;P&gt;Try specifying the length values in millimeters instead of centimeters :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;stlExportOptions.maximumEdgeLength = 21 # Units: Millimeters &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bug because &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c4c5de04-4d2a-4f8a-abad-4856014a26c5" target="_blank" rel="noopener"&gt;according to the documentation&lt;/A&gt;, these values must be expressed in centimeters…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 19:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919354#M6732</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2022-01-31T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919371#M6733</link>
      <description>&lt;P&gt;Look at the wire frame:&amp;nbsp;&lt;A href="https://autode.sk/3KYLULa" target="_blank"&gt;https://autode.sk/3KYLULa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1156 triangles vs 100244 triangles&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 20:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919371#M6733</guid>
      <dc:creator>hfcandrew</dc:creator>
      <dc:date>2022-01-31T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919444#M6734</link>
      <description>&lt;P&gt;This was it! Thank you so much for catching this! Definitely a bug... but put in the mm equivalent and Voilà, matching files. Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 20:49:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919444#M6734</guid>
      <dc:creator>knightsAHN63</dc:creator>
      <dc:date>2022-01-31T20:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to STL Discrepancy? (Different STL file size when exported manually in Fusion vs with the API)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919448#M6735</link>
      <description>&lt;P&gt;Thanks for the heads up on what to look for! Replicated this, so definitely a difference in the files, and then tried using mm for the edge length (&lt;SPAN&gt;stlExportOptions.maximumEdgeLength)&lt;/SPAN&gt; and fixed the problem. Phew! Great to know how to use the wireframe feature in MeshMixer for future checking though.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 20:51:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/exporting-to-stl-discrepancy-different-stl-file-size-when/m-p/10919448#M6735</guid>
      <dc:creator>knightsAHN63</dc:creator>
      <dc:date>2022-01-31T20:51:50Z</dc:date>
    </item>
  </channel>
</rss>

