<?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 Get the suppressed state of a browserfolder (iLogic) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-the-suppressed-state-of-a-browserfolder-ilogic/m-p/13228572#M175058</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to manage the suppression states of alot of parts and folders in an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i use addapted code from&amp;nbsp;&lt;STRONG&gt;manufacturing DevBlog&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2015/05/suppress-folder-in-assembly.html" target="_blank"&gt;https://adndevblog.typepad.com/manufacturing/2015/05/suppress-folder-in-assembly.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works but with 60000+ parts and multiple folders it takes a long time to itterate through all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rule above suppresses every seperate occurence in a folder (+100occs) even tho i could suppress the entire folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the following snippet is much faster in suppressing entire folders:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oDoc.SelectSet.Select(oBFolder)
		ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyCompSuppressionCtxCmd").Execute&lt;/LI-CODE&gt;&lt;P&gt;The problem with this is that I am not able to get the suppression state of the folder before toggeling it.&lt;/P&gt;&lt;P&gt;So if i need it suppressed and it is allready suppressed i can not check the status befor toggeling it.&lt;/P&gt;&lt;P&gt;Is it possible to get the folder suppression state in some way as it is shown in the Rightclick menu.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loicLPQZG_0-1735049749042.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448917iD90B5D527FD1BE75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="loicLPQZG_0-1735049749042.png" alt="loicLPQZG_0-1735049749042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(the isActive part for BOM is not an issue in this situation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any leads would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 14:19:53 GMT</pubDate>
    <dc:creator>loicLPQZG</dc:creator>
    <dc:date>2024-12-24T14:19:53Z</dc:date>
    <item>
      <title>Get the suppressed state of a browserfolder (iLogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-the-suppressed-state-of-a-browserfolder-ilogic/m-p/13228572#M175058</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to manage the suppression states of alot of parts and folders in an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i use addapted code from&amp;nbsp;&lt;STRONG&gt;manufacturing DevBlog&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2015/05/suppress-folder-in-assembly.html" target="_blank"&gt;https://adndevblog.typepad.com/manufacturing/2015/05/suppress-folder-in-assembly.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works but with 60000+ parts and multiple folders it takes a long time to itterate through all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rule above suppresses every seperate occurence in a folder (+100occs) even tho i could suppress the entire folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the following snippet is much faster in suppressing entire folders:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oDoc.SelectSet.Select(oBFolder)
		ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyCompSuppressionCtxCmd").Execute&lt;/LI-CODE&gt;&lt;P&gt;The problem with this is that I am not able to get the suppression state of the folder before toggeling it.&lt;/P&gt;&lt;P&gt;So if i need it suppressed and it is allready suppressed i can not check the status befor toggeling it.&lt;/P&gt;&lt;P&gt;Is it possible to get the folder suppression state in some way as it is shown in the Rightclick menu.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loicLPQZG_0-1735049749042.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448917iD90B5D527FD1BE75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="loicLPQZG_0-1735049749042.png" alt="loicLPQZG_0-1735049749042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(the isActive part for BOM is not an issue in this situation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any leads would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 14:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-the-suppressed-state-of-a-browserfolder-ilogic/m-p/13228572#M175058</guid>
      <dc:creator>loicLPQZG</dc:creator>
      <dc:date>2024-12-24T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get the suppressed state of a browserfolder (iLogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-the-suppressed-state-of-a-browserfolder-ilogic/m-p/13248126#M175297</link>
      <description>&lt;P&gt;A very similar topic was started on this exact problem a day or two ago. doesn't look like its possible past&amp;nbsp;cycling through each object in the folder and checking if they are all suppressed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main

	Dim oAsm As AssemblyDocument = ThisDoc.Document
	Dim BrowserPane As BrowserPane = oAsm.BrowserPanes.Item("Model")

	For Each oFolder As BrowserFolder In BrowserPane.TopNode.BrowserFolders	
		
		Dim bSuppressed As Boolean = True
		
		For Each oPart In oFolder.BrowserNode.BrowserNodes
			
			If oPart.NativeObject.Suppressed = False
				bSuppressed = False
                Exit For
			End If
				
		Next
		
		MsgBox(oFolder.BrowserNode.BrowserNodeDefinition.Label &amp;amp; " Are all Suppressed? " &amp;amp; vbLf &amp;amp; vbLf &amp;amp; bSuppressed)
		
	Next


End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 19:02:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-the-suppressed-state-of-a-browserfolder-ilogic/m-p/13248126#M175297</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2025-01-07T19:02:00Z</dc:date>
    </item>
  </channel>
</rss>

