- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
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.
I have created nodes in the tree view (e.g. Parts, Assemblies)
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.
It sorts all the parts in Part Node and creates child nodes in it with the occurrence name (This is already done.)
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).
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.
Example :
Main Assembly
- Part1
- Part2
- SubAssembly1
- SubSubAssembly2
- Partx
- Party
- Partz
- SubSubAssembly3
- SubSubAssembly2
- Part3
And so on....in the Inventor Browser node.
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.
Example :
Parts
- Part1
- Part2
- Part3
SubAssembly
- SubAssembly 1 (This has +icon and can be expanded)
- Parts (This will have +Icon, and if I expand I can see all the parts listed inside this assembly)
- Sub Assembly (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)
- Sub SubAssembly2
- Parts (It should list (Partx, Party, Partz, if expanded)
- Sub Assembly (This will also have +icon, and if I expand I should sub-assembly if there are any inside this assembly)
- Sub SubAssembly2
Hoping for some good help. I have tried to describe it clearly but, if it is still confusing I will try to elaborate.
Thanks,
Regards,
Dutt Thakar
Regards,
Dutt Thakar
Solved! Go to Solution.