<?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 Fully functional BrowserFolder(s) in browser structure of the Part-model in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12389550#M16451</link>
    <description>&lt;P&gt;Till recent I was sure there could be no Folders in the Model Browser structure of Part-model (because I don't know how to create it manually).&lt;BR /&gt;I was surprised to know the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=BrowserPane_AddBrowserFolder" target="_blank" rel="noopener"&gt;&lt;FONT size="3"&gt;BrowserPane.AddBrowserFolder Method&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size="3"&gt;&amp;nbsp;in fact is not limited to Assemblies.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Below is the iLogic code that creates the custom object (WorkPlane), Folder, and puts the object into the folder:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oDoc As Document = ThisApplication.ActiveDocument
Dim cmpDef = oDoc.ComponentDefinition
Dim oPane As BrowserPane = oDoc.BrowserPanes.ActivePane

Dim oTOs As TransientObjects = ThisApplication.TransientObjects
Dim subNodes As ObjectCollection = oTOs.CreateObjectCollection

Dim oWPl As WorkPlane = cmpDef.WorkPlanes.AddByPlaneAndOffset(cmpDef.WorkPlanes(1), 0)
Dim node = oPane.GetBrowserNodeFromObject(oWPl)
subNodes.Add(node)

Dim oFolder As BrowserFolder = oPane.AddBrowserFolder(, subNodes)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a result if after run within the new IPT:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximCADman77_0-1700512266546.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1295160i7E3D634833EE1123/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximCADman77_0-1700512266546.png" alt="MaximCADman77_0-1700512266546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The folder can be expanded and collapsed, It's child nodes can be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;there are some problems with doing other things that user expect to work:&lt;BR /&gt;&amp;nbsp;- can't delete the folder itself (even empty).&lt;BR /&gt;&amp;nbsp;- can't move nodes out and into the folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'd like to know whether I'm missing something that can make the folder fully functional for Part?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 20:32:44 GMT</pubDate>
    <dc:creator>Maxim-CADman77</dc:creator>
    <dc:date>2023-11-20T20:32:44Z</dc:date>
    <item>
      <title>Fully functional BrowserFolder(s) in browser structure of the Part-model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12389550#M16451</link>
      <description>&lt;P&gt;Till recent I was sure there could be no Folders in the Model Browser structure of Part-model (because I don't know how to create it manually).&lt;BR /&gt;I was surprised to know the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=BrowserPane_AddBrowserFolder" target="_blank" rel="noopener"&gt;&lt;FONT size="3"&gt;BrowserPane.AddBrowserFolder Method&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size="3"&gt;&amp;nbsp;in fact is not limited to Assemblies.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Below is the iLogic code that creates the custom object (WorkPlane), Folder, and puts the object into the folder:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oDoc As Document = ThisApplication.ActiveDocument
Dim cmpDef = oDoc.ComponentDefinition
Dim oPane As BrowserPane = oDoc.BrowserPanes.ActivePane

Dim oTOs As TransientObjects = ThisApplication.TransientObjects
Dim subNodes As ObjectCollection = oTOs.CreateObjectCollection

Dim oWPl As WorkPlane = cmpDef.WorkPlanes.AddByPlaneAndOffset(cmpDef.WorkPlanes(1), 0)
Dim node = oPane.GetBrowserNodeFromObject(oWPl)
subNodes.Add(node)

Dim oFolder As BrowserFolder = oPane.AddBrowserFolder(, subNodes)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a result if after run within the new IPT:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximCADman77_0-1700512266546.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1295160i7E3D634833EE1123/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximCADman77_0-1700512266546.png" alt="MaximCADman77_0-1700512266546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The folder can be expanded and collapsed, It's child nodes can be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;there are some problems with doing other things that user expect to work:&lt;BR /&gt;&amp;nbsp;- can't delete the folder itself (even empty).&lt;BR /&gt;&amp;nbsp;- can't move nodes out and into the folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'd like to know whether I'm missing something that can make the folder fully functional for Part?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 20:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12389550#M16451</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-11-20T20:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fully functional BrowserFolder(s) in browser structure of the Part-model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12390392#M16452</link>
      <description>&lt;P&gt;Adding folder seems also somehow breaks the part browser itself - nodes of new objects do appear from the top (not below the 'Origin' node):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximCADman77_0-1700546914963.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1295284i0B367A2EDD1AA890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximCADman77_0-1700546914963.png" alt="MaximCADman77_0-1700546914963.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;Everything described was reproduced in 2024.2 and 2023.4.1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 06:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12390392#M16452</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-11-21T06:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fully functional BrowserFolder(s) in browser structure of the Part-model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12391759#M16453</link>
      <description>&lt;P&gt;Yep.&amp;nbsp; Pretty frustrating.&amp;nbsp; I have wanted this ability for many years, and voted for the idea too.&amp;nbsp; It does seem to be on their radar, but for some reason they claim that it is pretty complicated to implement.&amp;nbsp; I will post a link to the idea below, just to steer more votes towards it, but I'm not holding my breath.&amp;nbsp; I commented on that idea earlier after yet another API code test, and got similar results as you and others over the years.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/browser-folders-in-part-environment/idi-p/3780620" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ideas/browser-folders-in-part-environment/idi-p/3780620&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 16:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/fully-functional-browserfolder-s-in-browser-structure-of-the/m-p/12391759#M16453</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-11-21T16:17:27Z</dc:date>
    </item>
  </channel>
</rss>

