<?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: Extracting the information of all sub levels from top assembly and using in a Tree View in Visual Studio in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9945960#M54978</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5827982"&gt;@laszlo_nagy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks this thread helped me a lot, I need to make some tweaks in the code according to my requirement to replicate the behaviour in a tree view, but it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the right tree view behaviour I had to use ParentOccurrence name and Object for a quick check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 10:30:45 GMT</pubDate>
    <dc:creator>dutt.thakar</dc:creator>
    <dc:date>2020-12-17T10:30:45Z</dc:date>
    <item>
      <title>Extracting the information of all sub levels from top assembly and using in a Tree View in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9943830#M54976</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Tree view in Visual Studio and I want to get all the information from the main assembly to the tree view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created nodes in the tree view (e.g. Parts, Assemblies)&lt;/P&gt;&lt;P&gt;The information I want is, when I run my code through visual studio, it automatically populates all the information from the active assembly, and in a tree view, it populates the information in the same structure as per the main Assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sorts all the parts in Part Node and creates child nodes in it with the occurrence name (This is already done.)&lt;/P&gt;&lt;P&gt;In the Assembly Node, it sorts all the assemblies within the main assembly and creates a child node with an occurrence name (This is also done).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the challenge is, I want to get all the information for different sub-assembly levels as well and create child nodes at sub-assembly levels that will list all the parts inside a part node within that level and assemblies inside a sub-assembly node. Because as a creator we don't know how many sub-assembly levels will exist in an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main Assembly&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Part1&lt;/LI&gt;&lt;LI&gt;Part2&lt;/LI&gt;&lt;LI&gt;SubAssembly1&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;SubSubAssembly2&lt;UL&gt;&lt;LI&gt;Partx&lt;/LI&gt;&lt;LI&gt;Party&lt;/LI&gt;&lt;LI&gt;Partz&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;SubSubAssembly3&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Part3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And so on....in the Inventor Browser node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;for the above example what I want to do is when I run the code in a tree view I am expecting the below result.&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parts&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Part1&lt;/LI&gt;&lt;LI&gt;Part2&lt;/LI&gt;&lt;LI&gt;Part3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SubAssembly&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SubAssembly 1 (This has +icon and can be expanded)&lt;UL&gt;&lt;LI&gt;Parts (This will have +Icon, and if I expand I can see all the parts listed inside this assembly)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Sub Assembly&amp;nbsp;(This will also have +icon, and if I expand I can see all the sub-assemblies listed inside this assembly, e.g. SubSubAssembly2 and SubSubAssembly3)&lt;UL&gt;&lt;LI&gt;Sub SubAssembly2&lt;UL&gt;&lt;LI&gt;Parts (It should list (Partx, Party, Partz, if expanded)&lt;/LI&gt;&lt;LI&gt;Sub Assembly (This will also have +icon, and if I expand I should sub-assembly if there are any inside this assembly)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping for some good help. I have tried to describe it clearly but, if it is still confusing I will try to elaborate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 13:28:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9943830#M54976</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-12-16T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the information of all sub levels from top assembly and using in a Tree View in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9944470#M54977</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this site:&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9944470#M54977</guid>
      <dc:creator>laszlo_nagy</dc:creator>
      <dc:date>2020-12-16T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the information of all sub levels from top assembly and using in a Tree View in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9945960#M54978</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5827982"&gt;@laszlo_nagy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks this thread helped me a lot, I need to make some tweaks in the code according to my requirement to replicate the behaviour in a tree view, but it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the right tree view behaviour I had to use ParentOccurrence name and Object for a quick check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 10:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/extracting-the-information-of-all-sub-levels-from-top-assembly/m-p/9945960#M54978</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-12-17T10:30:45Z</dc:date>
    </item>
  </channel>
</rss>

