<?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: Show Hidden Components, Make Collection/Selection Visible/Invisible in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417124#M32908</link>
    <description>&lt;P&gt;In a previous life, I had a few customers using a similar workflow on assemblies with 30,000+ (mostly unique) parts and it worked OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using Vault?&amp;nbsp; I think that since all the files are local&amp;nbsp;&lt;SPAN&gt;in a Vault environment, it dramatically helps the selection speed.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 00:02:52 GMT</pubDate>
    <dc:creator>pcrawley</dc:creator>
    <dc:date>2022-09-13T00:02:52Z</dc:date>
    <item>
      <title>Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11416982#M32905</link>
      <description>&lt;P&gt;I have a sweet little iLogic rule that sets all Invisible components to Visible and the Visible to Invisible.&lt;BR /&gt;Prior to this, the number of Visible and Invisible components is determined which&amp;nbsp;happens very quickly, Inventor knows this in no time.&lt;BR /&gt;Then I don't know any other way than to go through the collection one by one and do a visible/unvisible comparison and then connect the reversed action to it, this method takes quite some time.&lt;BR /&gt;&lt;STRONG&gt;My question: Can this be done faster?&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Is there a way to make a collection or selection visible/invisible at once?&lt;/STRONG&gt;&lt;BR /&gt;See video and attachment(Code incl. Button with VBA code/module).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:49:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11416982#M32905</guid>
      <dc:creator>cnoJTCG6</dc:creator>
      <dc:date>2022-09-12T21:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417024#M32906</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do all that from the selection menu:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Select Part Priority&lt;/P&gt;&lt;P&gt;Window select all visible components, right-click &amp;gt; Visibility (to make them invisible)&lt;/P&gt;&lt;P&gt;&amp;gt;Previous Selection&lt;/P&gt;&lt;P&gt;&amp;gt;Invert Selection (now you have everything that was invisible selected)&lt;/P&gt;&lt;P&gt;Right-click &amp;gt; Visibility (to make them visible)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1114855i1A28B07947688CBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="03.jpg" alt="03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are looking for iLogic or other coding advice, you might have more luck over on the &lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/bd-p/120" target="_blank"&gt;Inventor iLogic and VB.net Forum - Autodesk Community&lt;/A&gt;&amp;nbsp;forum:&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 22:35:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417024#M32906</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2022-09-12T22:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417089#M32907</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response and clear explanation.&lt;BR /&gt;It is a bit cumbersome to be able to see what you have 'hidden' in a Design View, I think that button could have been there for a long time given the amount of code that is apparently required.&lt;BR /&gt;&lt;STRONG&gt;What is your experience with this method on an assembly with about 1600 occurrences?&lt;/STRONG&gt;&lt;BR /&gt;Things don't run smoothly here, especially with Part priority it takes a long time for the selection to 'get through'.&lt;BR /&gt;I think I already love the button &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I was under the impression to have posted this post in 'Inventor iLogic and VB.net' Forum.&lt;BR /&gt;I did accidentally have '/' in the tags and removed them.&lt;BR /&gt;Could this also have changed the destination?&lt;BR /&gt;Btw, I still have strange experiences with the forum in the sense of spontaneously logging out, this has been going on for months now.&lt;BR /&gt;I just have to smile now, I think Autodesk tries to keep the Inventor style alive on the forum, a form of consistency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 23:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417089#M32907</guid>
      <dc:creator>cnoJTCG6</dc:creator>
      <dc:date>2022-09-12T23:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417124#M32908</link>
      <description>&lt;P&gt;In a previous life, I had a few customers using a similar workflow on assemblies with 30,000+ (mostly unique) parts and it worked OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using Vault?&amp;nbsp; I think that since all the files are local&amp;nbsp;&lt;SPAN&gt;in a Vault environment, it dramatically helps the selection speed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 00:02:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417124#M32908</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2022-09-13T00:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417571#M32909</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your response.&lt;/P&gt;&lt;P&gt;Yes we are using vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 07:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11417571#M32909</guid>
      <dc:creator>checkcheck_master</dc:creator>
      <dc:date>2022-09-13T07:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11426368#M32910</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10459476"&gt;@cnoJTCG6&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I was under the impression to have posted this post in 'Inventor iLogic and VB.net' Forum.&lt;BR /&gt;I did accidentally have '/' in the tags and removed them.&lt;BR /&gt;Could this also have changed the destination?&lt;BR /&gt;Btw, I still have strange experiences with the forum in the sense of spontaneously logging out, this has been going on for months now.&lt;BR /&gt;I just have to smile now, I think Autodesk tries to keep the Inventor style alive on the forum, a form of consistency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10199404"&gt;@checkcheck_master&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10459476"&gt;@cnoJTCG6&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did you still wish to have this post moved to the iLogic forum?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:58:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11426368#M32910</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2022-09-16T14:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11426835#M32911</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9248770"&gt;@CGBenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes please, that would be nice, thanks for the thoughtfulness.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 18:22:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11426835#M32911</guid>
      <dc:creator>checkcheck_master</dc:creator>
      <dc:date>2022-09-16T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430357#M32912</link>
      <description>&lt;P&gt;Sry, but i don't think i understand your goal...&lt;/P&gt;&lt;P&gt;do you already have a rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(i think the attached video went missing?)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:18:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430357#M32912</guid>
      <dc:creator>Lucas.dolinarVFXZU</dc:creator>
      <dc:date>2022-09-19T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430381#M32913</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;occ&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Else&lt;/SPAN&gt;
			&lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

	&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this will not be enough for you we could try to do it trough selectset and execute command trough command manager.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430381#M32913</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-19T09:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430408#M32914</link>
      <description>you can check this thread as well:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/switch-between-visible-and-hide-parts-in-a-assembly/td-p/8749527" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/switch-between-visible-and-hide-parts-in-a-assembly/td-p/8749527&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430408#M32914</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-19T09:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430616#M32915</link>
      <description>&lt;P&gt;Wouldn't a branchless version be faster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;Visible = Not occ.Visible&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430616#M32915</guid>
      <dc:creator>Lucas.dolinarVFXZU</dc:creator>
      <dc:date>2022-09-19T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430909#M32916</link>
      <description>&lt;P&gt;hi, for large assemblies it could be faster, but still i think it will be faster to change visibility with one command, this approach even simplified like you suggested will be slower, this is because switching visibility is most time consuming operation here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this one could be faster:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim ass As AssemblyDocument = ThisApplication.ActiveDocument
Dim selset As SelectSet = ass.SelectSet
Dim o_vis As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
Dim o_hid As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
o_vis.Clear
o_hid.Clear
For Each occ As ComponentOccurrence In ass.ComponentDefinition.Occurrences
	If occ.Visible = False Then o_hid.Add(occ) 
	If occ.Visible = True Then o_vis.Add(occ)
Next
selset.Clear
selset.SelectMultiple(o_vis)
	
ThisApplication.CommandManager.ControlDefinitions("AssemblyVisibilityCtxCmd").Execute
 
selset.Clear
selset.SelectMultiple(o_hid)
ThisApplication.CommandManager.ControlDefinitions("AssemblyVisibilityCtxCmd").execute
selset.Clear
o_vis.Clear
o_hid.Clear
o_vis = Nothing
o_hid=Nothing&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:44:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11430909#M32916</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-19T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show Hidden Components, Make Collection/Selection Visible/Invisible</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11431524#M32917</link>
      <description>&lt;P&gt;Thanks everyone for the responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your code.&lt;BR /&gt;That's what I had in mind too, but didn't do what I wanted.&lt;BR /&gt;I've incorporated your code into what I already had, I've excluded suppressed components to get it working for my assembly with suppressed components.&lt;BR /&gt;What surprises me is the speed difference.&lt;BR /&gt;I expected that with a collection it would run much smoother, but it seems to go slower.&lt;BR /&gt;Am I doing something wrong or can it be done differently?&lt;BR /&gt;See video for a comparison, code as attachment.&lt;BR /&gt;Apart from the fact that the code does work and it can be a handy tool compared to the clicks you have to make otherwise, it intrigues me why it should take so long.&lt;BR /&gt;Right-clicking on a design view and choosing show all or hide all is lightning fast, even if a part is already visible.&lt;BR /&gt;How does Inventor do that itself, I wonder.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 17:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-hidden-components-make-collection-selection-visible/m-p/11431524#M32917</guid>
      <dc:creator>checkcheck_master</dc:creator>
      <dc:date>2022-09-19T17:53:22Z</dc:date>
    </item>
  </channel>
</rss>

