<?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: PartsList API performance issues. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8359685#M90590</link>
    <description>&lt;P&gt;Awesome good to know, glad it worked out for you!!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 16:44:16 GMT</pubDate>
    <dc:creator>omartin</dc:creator>
    <dc:date>2018-10-25T16:44:16Z</dc:date>
    <item>
      <title>PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8311161#M89639</link>
      <description>&lt;P&gt;I ran in to a wall dealing with the PartsList API.&lt;/P&gt;&lt;P&gt;Our organization deals with pretty large assemblies in the order of 750-1000 parts. When we create our drawing package the first drawing is BoM drawing containing all the parts in the project. We use the parts list for this purpose.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SplitTable.png" style="width: 321px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/553559i3F3DDFCE134E2B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="SplitTable.png" alt="SplitTable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In order to make this work now, we use the "Split Table" command from the context menu when right clicking on a row. This splits the table at that row and 2 children tables appear in the tree. In our current process we split the parts list 8-10 times or more depending on the project size and then we move the sub tables to other sheets (2 tables per sheet). This is very time consuming. This functionality is not available through the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I decided that I could do this by making a copy of the full parts list and hide the rows that I don't need. That is to say, I have some code that copies the full expanded parts list in to a temporary sheet and then&amp;nbsp;I loop through all the rows and set the visibility. Then I move the resulting "partial list" to the appropriate sheet. This worked reasonably well for an assembly with 40 parts. However when ruining on a full project with 600 parts the routine takes more that an hour. It stalls on setting the visibility of a row since Inventor runs the UpdatePartsList command after each call to the visibility property of the row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to mention I did the usual stuff to improve performance as per this blog post (&lt;A href="http://modthemachine.typepad.com/my_weblog/2015/09/improving-your-programs-performance.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2015/09/improving-your-programs-performance.html&lt;/A&gt;). The whole routine is warped in a global transaction. The drawing document is opened in the background, the loop is a foreach loop and&amp;nbsp;I disabled user interactions. This is also and add-in so it runs in process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody has dealt with this issue before&amp;nbsp;I would greatly appreciate any suggestion for making this work in a reasonable time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody from Autodesk sees this, is there any plans for bringing some of the functionality that is available through the user interface of the parts list to the API i.e the split table function. This might be useful for a lot of users since BoM work is very common and repetitive. (ideal for automation).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 20:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8311161#M89639</guid>
      <dc:creator>Mircea_Dorobantu</dc:creator>
      <dc:date>2018-10-03T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8312166#M89662</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6476829"&gt;@Mircea_Dorobantu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more understanding, can you please demonstrate automation or task with the help of video record (Assembly with 40 parts)? Please make sure that files are non confidential.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 09:00:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8312166#M89662</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-10-04T09:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8322809#M89877</link>
      <description>Hi Chandra,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have been swamped with other tasks at the moment. I will get back to you with a recording by the end of the week.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Merch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2018 15:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8322809#M89877</guid>
      <dc:creator>Mircea_Dorobantu</dc:creator>
      <dc:date>2018-10-09T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8323022#M89881</link>
      <description>&lt;P&gt;I haven't try it.&lt;/P&gt;&lt;P&gt;There are 2 properties in PartList: PartsList.MaximumRows and PartList.WrapAutomatically.&lt;/P&gt;&lt;P&gt;What happen when you set&amp;nbsp;&lt;SPAN&gt;PartsList.MaximumRows to 20 and&amp;nbsp;PartList.WrapAutomatically to TRUE?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8323022#M89881</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2018-10-09T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8323031#M89882</link>
      <description>&lt;P&gt;I have tried what you suggest. However, this is not what I'm looking for since this simply wraps the BoM on the same sheet and i need the BoM to be split among several sheets (the BoM are simply to large to fit on one sheet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Split Table command mentioned in my initial post is what I'm looking for. This allows you to move the split parts in to different sheets. This is however not available in the API as far as I'm aware...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll post a screen capture late this week to clarify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mircea&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:50:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8323031#M89882</guid>
      <dc:creator>Mircea_Dorobantu</dc:creator>
      <dc:date>2018-10-09T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8344090#M90273</link>
      <description>&lt;P&gt;Not sure it would be any quicker, but maybe the split tables need to be regular tables.&lt;/P&gt;&lt;P&gt;you can get all the data from the original table, store it in a .net data table or something so you are not working in inventor any more, create the required table objects first with out placing them on the sheet, and then at the end just create regular tables in inventor....this adds the caveat of the tables being possibly out of sync...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:30:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8344090#M90273</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2018-10-18T18:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8357471#M90539</link>
      <description>&lt;P&gt;Thanks for the idea! This worked for my needs perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Merch&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 22:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8357471#M90539</guid>
      <dc:creator>Mircea_Dorobantu</dc:creator>
      <dc:date>2018-10-24T22:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: PartsList API performance issues.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8359685#M90590</link>
      <description>&lt;P&gt;Awesome good to know, glad it worked out for you!!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:44:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/partslist-api-performance-issues/m-p/8359685#M90590</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2018-10-25T16:44:16Z</dc:date>
    </item>
  </channel>
</rss>

