<?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: BOM clear manual sort with ilogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239861#M35844</link>
    <description>&lt;P&gt;just tried it but that does not work.&lt;/P&gt;&lt;P&gt;then i get an error, because there is no property with an empty string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;False,&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;the secondary en tertiary sorts are optional, so input is not required there.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 15:11:52 GMT</pubDate>
    <dc:creator>GeertvanderHeide</dc:creator>
    <dc:date>2022-06-16T15:11:52Z</dc:date>
    <item>
      <title>BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239700#M35842</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to control my BOM with ilogic for cutom user inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already got the sort function and show function to work.&lt;/P&gt;&lt;P&gt;Only problem i got is that the ilogic code does not work when there is a manual sort on any collumn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well the code works, but it does nothing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clear this you have to click rmb on the collumn that is manually sorted, and then click clear sort.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After this the code works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to built in a safety in ilogic that clears manual sorts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAssem&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBOM&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOM&lt;/SPAN&gt; = &lt;SPAN&gt;oAssem&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOM&lt;/SPAN&gt;
&lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;StructuredViewEnabled&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;StructuredViewFirstLevelOnly&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOMView&lt;/SPAN&gt; = &lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;BOMViews&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"structured"&lt;/SPAN&gt;)
&lt;BR /&gt;'sort bom on base QTY
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;"Base QTY"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)
&lt;SPAN&gt;&lt;BR /&gt;'show bom&lt;BR /&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCM&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CommandManager&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCD&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt; = &lt;SPAN&gt;oCM&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;	
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ShowBom&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oCD&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"AssemblyBillOfMaterialsCmd"&lt;/SPAN&gt;)
&lt;SPAN&gt;ShowBom&lt;/SPAN&gt;.&lt;SPAN&gt;Execute2&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;)
&lt;BR /&gt;'sort on item after bom closes
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;"Item"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)
&lt;SPAN&gt;'MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"done"&lt;/SPAN&gt;) to check if the excecute2 fucntion is working.&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239700#M35842</guid>
      <dc:creator>GeertvanderHeide</dc:creator>
      <dc:date>2022-06-16T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239811#M35843</link>
      <description>&lt;P&gt;Have you tried clearing all manual sorts by placing nothing or “” in place of a sort if you have only 2 columns sorting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Syntax&lt;BR /&gt;BOMView.&lt;/SPAN&gt;&lt;STRONG&gt;Sort&lt;/STRONG&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;PrimaryColumnTitle&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As String, [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;PrimaryColumnAscending&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] As Boolean, [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;SecondaryColumnTitle&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] As String, [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;SecondaryColumnAscending&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] As Boolean, [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;TertiaryColumnTitle&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] As String, [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;TertiaryColumnAscending&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] As Boolean )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;"Base QTY"&lt;/SPAN&gt;, &lt;SPAN&gt;False,”Item”,True,””,True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239811#M35843</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-16T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239861#M35844</link>
      <description>&lt;P&gt;just tried it but that does not work.&lt;/P&gt;&lt;P&gt;then i get an error, because there is no property with an empty string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;False,&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;the secondary en tertiary sorts are optional, so input is not required there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:11:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11239861#M35844</guid>
      <dc:creator>GeertvanderHeide</dc:creator>
      <dc:date>2022-06-16T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11240556#M35845</link>
      <description>&lt;P&gt;Hi The sort is removing all manual sort criteria in Inventor 2020.&lt;/P&gt;&lt;P&gt;Before Rule Running:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1655413630042.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1080975iE7249E413BFA8C8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1655413630042.png" alt="AAcheson_0-1655413630042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After Rule Running:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_1-1655413769261.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1080977i6E8DA68CC140F0E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_1-1655413769261.png" alt="AAcheson_1-1655413769261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAssem&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBOM&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOM&lt;/SPAN&gt; = &lt;SPAN&gt;oAssem&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOM&lt;/SPAN&gt;
&lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;StructuredViewEnabled&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;StructuredViewFirstLevelOnly&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOMView&lt;/SPAN&gt; = &lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;BOMViews&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"structured"&lt;/SPAN&gt;)

&lt;SPAN&gt;'Sort bom on Item&lt;/SPAN&gt;
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oBOMview&lt;/SPAN&gt;.&lt;SPAN&gt;Sort&lt;/SPAN&gt;(&lt;SPAN&gt;"Item"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;'show bom&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCM&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CommandManager&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCD&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt; = &lt;SPAN&gt;oCM&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;	
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ShowBom&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oCD&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"AssemblyBillOfMaterialsCmd"&lt;/SPAN&gt;)
&lt;SPAN&gt;ShowBom&lt;/SPAN&gt;.&lt;SPAN&gt;Execute2&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11240556#M35845</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-16T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11245418#M35846</link>
      <description>&lt;P&gt;the problem is when you have the bom open.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeertvanderHeide_0-1655705997489.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1081721i692B64A45BD22039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeertvanderHeide_0-1655705997489.png" alt="GeertvanderHeide_0-1655705997489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;when you click part number an arrow appears.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when this arrow is shown in any collumn the code doesn's work.&lt;/P&gt;&lt;P&gt;this arrow can be removed by right clicking the collumn tab and select clear sort.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but as far as i know there is no option to do this in code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11245418#M35846</guid>
      <dc:creator>GeertvanderHeide</dc:creator>
      <dc:date>2022-06-20T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11250337#M35847</link>
      <description>&lt;P&gt;I see the missing functionality now. I have likely had this happen to me before and was unaware of the issue. I checked the API and the commands list and there seems to be no way to clear this Sort Ascending/Descending filter. What does work is to import a clean xml. Which may not be ideal if you have made changes.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oBOM&lt;/SPAN&gt;.&lt;SPAN&gt;ImportBOMCustomization&lt;/SPAN&gt;(&lt;SPAN&gt;"C:\Users\ImportBOMColumnSettings.xml"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt; No way to clear a manual Sort Ascending/Descending activated in the editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="AAcheson_2-1655873110660.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1082618i046807658492AF56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_2-1655873110660.png" alt="AAcheson_2-1655873110660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 04:45:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11250337#M35847</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-22T04:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: BOM clear manual sort with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11250521#M35848</link>
      <description>&lt;P&gt;Ow that's a workaround does the job perfectly!&lt;/P&gt;&lt;P&gt;now i just exported the bom without any customization to an xml, and override that with the bom.&lt;/P&gt;&lt;P&gt;Only thing is that you override the bom everytime you run the rule. i don't know how much impact it has on performance, but what i can see now it works very smooth.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:59:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-clear-manual-sort-with-ilogic/m-p/11250521#M35848</guid>
      <dc:creator>GeertvanderHeide</dc:creator>
      <dc:date>2022-06-22T06:59:04Z</dc:date>
    </item>
  </channel>
</rss>

