<?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: The order of the Model Tree in Assembly is incorrect in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515978#M63117</link>
    <description>&lt;P&gt;Can you please show the Model Data tab for me. Maybe I wasn't too clear on what I was stating before, but just incase there are images attached. I just want to make sure we are talking apples to apples here lol:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image below is 2 components placed in, just 1 after the other:&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="blandb_0-1666979188087.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133442iAB7410A98C4581CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_0-1666979188087.png" alt="blandb_0-1666979188087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, opening the BOM to see they are in the same order as when initially placed:&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="blandb_1-1666979245447.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133444iD3E89B1DEAFCCB9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_1-1666979245447.png" alt="blandb_1-1666979245447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I manually re-arranged the parts in the assembly:&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="blandb_2-1666979283202.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133445i810DC76EABEF1424/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_2-1666979283202.png" alt="blandb_2-1666979283202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, checking the Model data tab, but doesn't swap the order:&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="blandb_3-1666979316019.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133446i895C2BB1384D4B56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_3-1666979316019.png" alt="blandb_3-1666979316019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, with the ones that work for you, does the Model data tab match the model browser for those assemblies?&lt;/P&gt;&lt;P&gt;Also, for the one that doesn't work,&amp;nbsp; does the model data tab show a different order and what you are seeing in your messages boxes is what is listed as the first item in the model data tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this may seem redundant, just wanting images for proof is all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 17:50:52 GMT</pubDate>
    <dc:creator>blandb</dc:creator>
    <dc:date>2022-10-28T17:50:52Z</dc:date>
    <item>
      <title>The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11514225#M63110</link>
      <description>&lt;P&gt;In my assembly, the order of the parts in my models tree is incorrect. I am very sure it's a Inventor bug. I tried to restart Inventor, my computer, but it still shows incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a API to use to constrain the newest part to the first part (skeleton) in my Assembly. Suddenly, it keeps picking the wrong first part, even though&amp;nbsp;on the model tree, it showed as the first part , but it's not. My newest part keeps constraining to a random part on the model tree.&lt;/P&gt;&lt;P&gt;When I tried to drag my first part above itself (all the way to the top), it jumped down in the middle of the tree, not showed as the first, but then my API functions normally, which means it is the first part (skeleton) on top of the tree, even though it now shows in the middle of the tree, it is actually is the first part in model tree.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a way to reset/rebuild/refresh the model tree, so all of the parts show in the correct order.&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="duynguyenJYSF4_0-1666924890464.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133139iCB316E5B136ACA44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_0-1666924890464.png" alt="duynguyenJYSF4_0-1666924890464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duynguyenJYSF4_1-1666925045745.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133140iF91659697A7A34B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_1-1666925045745.png" alt="duynguyenJYSF4_1-1666925045745.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 02:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11514225#M63110</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T02:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515230#M63111</link>
      <description>&lt;P&gt;When this assembly was made, are you sure that the part you are targeting was actually placed first? I mean the components are able to be moved in the browser to place them in any order. If you click on Bill of Materials and look at the model data tab, does it show you part of interest as the very first item?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515230#M63111</guid>
      <dc:creator>blandb</dc:creator>
      <dc:date>2022-10-28T13:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515236#M63112</link>
      <description>&lt;P&gt;I was working on it for awhile before it suddenly happened. The BOM and the order on the tree are not matched. I tried.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515236#M63112</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515262#M63113</link>
      <description>&lt;P&gt;If you notice, you cannot sort the model data tab in the BOM. In my mind the model data tab shows you the order in which things were placed. Even if you drag and sort the model browser, the Model Data tab in the BOM stays the same. Now, you can sort the Structured and parts only, but not the model data. So if your api is just looking for the first part, then it is probably targeting the first part shown in the model data tab right? You might need to alter it to search for other criteria, or maybe rebuild this assembly and make sure that the part you need is placed first.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:27:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515262#M63113</guid>
      <dc:creator>blandb</dc:creator>
      <dc:date>2022-10-28T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515331#M63114</link>
      <description>&lt;P&gt;Thanks for replied. That's what I am trying to figure it out. On the Manage Panel, there is a "Rebuild" but it doesn't do any with this bug on the model tree.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:54:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515331#M63114</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T13:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515430#M63115</link>
      <description>&lt;P&gt;The rebuild all will not restructure the model browser. This is intended to make sure all edits are updated in the model for a part file, or regenerates constraints, or sketches that might be at the assembly level or regens adaptive components.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515430#M63115</guid>
      <dc:creator>blandb</dc:creator>
      <dc:date>2022-10-28T14:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515907#M63116</link>
      <description>&lt;P&gt;I came up with a simple code to find the name of the first part:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim Asmdoc As Document
Asmdoc = ThisDoc.Document

Dim oAsyComp As Inventor.AssemblyComponentDefinition
oAsyComp = Asmdoc.ComponentDefinition

Dim occ1 As ComponentOccurrence
occ1 = oAsyComp.Occurrences.Item(1)

Dim docFName As String
docFName = occ1.Name

MessageBox.Show(docFName, "Title")&lt;/LI-CODE&gt;&lt;P&gt;You can see in the photo, they are not matching:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duynguyenJYSF4_0-1666977689703.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133426iBC42E42999268712/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_0-1666977689703.png" alt="duynguyenJYSF4_0-1666977689703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I dragged the part to the top, even though it's on the top, but it showed different part.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duynguyenJYSF4_1-1666977752726.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133429i670658F05107788B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_1-1666977752726.png" alt="duynguyenJYSF4_1-1666977752726.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with other projects, and the code is good:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duynguyenJYSF4_2-1666977802273.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133430iFA3204C30A96D782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_2-1666977802273.png" alt="duynguyenJYSF4_2-1666977802273.png" /&gt;&lt;/span&gt;&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="duynguyenJYSF4_3-1666977835512.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133431iADE6AC94AE9902BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="duynguyenJYSF4_3-1666977835512.png" alt="duynguyenJYSF4_3-1666977835512.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I submitted a ticket to Autodesk, some guy called, told me to try "Ground and Root", but still the same. They asked for pack and go, and then blame the code. They are not really helpful, so I dont know what to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 17:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515907#M63116</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T17:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515978#M63117</link>
      <description>&lt;P&gt;Can you please show the Model Data tab for me. Maybe I wasn't too clear on what I was stating before, but just incase there are images attached. I just want to make sure we are talking apples to apples here lol:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image below is 2 components placed in, just 1 after the other:&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="blandb_0-1666979188087.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133442iAB7410A98C4581CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_0-1666979188087.png" alt="blandb_0-1666979188087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, opening the BOM to see they are in the same order as when initially placed:&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="blandb_1-1666979245447.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133444iD3E89B1DEAFCCB9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_1-1666979245447.png" alt="blandb_1-1666979245447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I manually re-arranged the parts in the assembly:&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="blandb_2-1666979283202.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133445i810DC76EABEF1424/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_2-1666979283202.png" alt="blandb_2-1666979283202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, checking the Model data tab, but doesn't swap the order:&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="blandb_3-1666979316019.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133446i895C2BB1384D4B56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blandb_3-1666979316019.png" alt="blandb_3-1666979316019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, with the ones that work for you, does the Model data tab match the model browser for those assemblies?&lt;/P&gt;&lt;P&gt;Also, for the one that doesn't work,&amp;nbsp; does the model data tab show a different order and what you are seeing in your messages boxes is what is listed as the first item in the model data tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this may seem redundant, just wanting images for proof is all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 17:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11515978#M63117</guid>
      <dc:creator>blandb</dc:creator>
      <dc:date>2022-10-28T17:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516128#M63118</link>
      <description>&lt;P&gt;Hi! Just a quick test. Please open the assembly and go to Productivity section -&amp;gt; Alpha Sort Components. For the grounded part in the middle. Try "Ground and Root."&amp;nbsp;Does it work?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 19:15:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516128#M63118</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2022-10-28T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516273#M63119</link>
      <description>Ground and Root didn't work.&lt;BR /&gt;&lt;BR /&gt;However, I tried the Alpha Soft, and then pull the part up to the top. It seems like reset the model tree.&lt;BR /&gt;It should be a "quick fix" trick for now.</description>
      <pubDate>Fri, 28 Oct 2022 20:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516273#M63119</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: The order of the Model Tree in Assembly is incorrect</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516277#M63120</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/467314"&gt;@blandb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replied, but the Model Data has nothing to do with the order on the model tree to what I am trying to achieve.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:27:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/the-order-of-the-model-tree-in-assembly-is-incorrect/m-p/11516277#M63120</guid>
      <dc:creator>duy.nguyenJYSF4</dc:creator>
      <dc:date>2022-10-28T20:27:31Z</dc:date>
    </item>
  </channel>
</rss>

