<?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: iLogic and Folders (again) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13847131#M177498</link>
    <description>&lt;P&gt;This fixed the folders that are named in the user parameters, however all other folders are suppressed.&amp;nbsp; While the folders are an improvement over the iLogic needed to turn parts on/off, it seems it will require more work than can be justified for the benefits.&amp;nbsp; Representations with model state/view accomplish the same thing and are easier to modify, just not as neat.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2025 14:57:09 GMT</pubDate>
    <dc:creator>jmckone9Z5PD</dc:creator>
    <dc:date>2025-10-10T14:57:09Z</dc:date>
    <item>
      <title>iLogic and Folders (again)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13843458#M177452</link>
      <description>&lt;P&gt;A few new issues.&amp;nbsp; I tried the code from previous post and changed the user parameters as required (obviously missed something).&amp;nbsp; I get this error and all folders containing parts are suppressed (patterns not affected):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[While I am at it - what happens if there is a folder inside a folder.&amp;nbsp; In this case each of the glazing folders (GlzDG8125, GlzTG1125, Glz1625) should have the Setting Blocks - DG/TG added to the appropriate folder. (in the case I could just delete the folders but like to keep things 'neat']&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmckone9Z5PD_0-1759929392912.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1577253i1A875EDB02E840D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmckone9Z5PD_0-1759929392912.png" alt="jmckone9Z5PD_0-1759929392912.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmckone9Z5PD_1-1759929538219.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1577254i727DB6BDF6F36B13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmckone9Z5PD_1-1759929538219.png" alt="jmckone9Z5PD_1-1759929538219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Browser (Glazing Folders)&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="jmckone9Z5PD_2-1759929671085.png" style="width: 257px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1577255iF280A2657CC12364/image-dimensions/257x535?v=v2" width="257" height="535" role="button" title="jmckone9Z5PD_2-1759929671085.png" alt="jmckone9Z5PD_2-1759929671085.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 13:33:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13843458#M177452</guid>
      <dc:creator>jmckone9Z5PD</dc:creator>
      <dc:date>2025-10-08T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Folders (again)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13843470#M177453</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17507109"&gt;@jmckone9Z5PD&lt;/a&gt;&amp;nbsp;, try this update to add a try/catch to handle nodes that are not occurrence components&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oPane1&lt;/SPAN&gt;.&lt;SPAN&gt;TopNode&lt;/SPAN&gt;.&lt;SPAN&gt;BrowserFolders&lt;/SPAN&gt;
	&lt;SPAN&gt;'get the nodes in that folder&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFolderNodes&lt;/SPAN&gt; = &lt;SPAN&gt;oFolder&lt;/SPAN&gt;.&lt;SPAN&gt;BrowserNode&lt;/SPAN&gt;.&lt;SPAN&gt;BrowserNodes&lt;/SPAN&gt;
	&lt;SPAN&gt;'evaluate if folder matches parameter name and hold that value as true or false&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FolderIsCranktype&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt; = (&lt;SPAN&gt;oFolder&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;oCrankName&lt;/SPAN&gt;)
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oNode&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BrowserNode&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oFolderNodes&lt;/SPAN&gt;
&lt;STRONG&gt;		Try
			oOcc = oNode.NativeObject
		Catch
			Logger.Info("Could not get occurrence from node")
			Continue For
		End Try&lt;/STRONG&gt;
		&lt;SPAN&gt;'set active status of occurrence to match the value of (folder name matches parameter value)&lt;/SPAN&gt;
		&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;IsActive&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;FolderIsCranktype&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 13:43:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13843470#M177453</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2025-10-08T13:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Folders (again)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13847131#M177498</link>
      <description>&lt;P&gt;This fixed the folders that are named in the user parameters, however all other folders are suppressed.&amp;nbsp; While the folders are an improvement over the iLogic needed to turn parts on/off, it seems it will require more work than can be justified for the benefits.&amp;nbsp; Representations with model state/view accomplish the same thing and are easier to modify, just not as neat.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 14:57:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-folders-again/m-p/13847131#M177498</guid>
      <dc:creator>jmckone9Z5PD</dc:creator>
      <dc:date>2025-10-10T14:57:09Z</dc:date>
    </item>
  </channel>
</rss>

