<?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: Turn off component visibility for all instances in top asy and sub asy. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021991#M61419</link>
    <description>&lt;P&gt;LukeDavenport,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. &amp;nbsp;However, we are trying to avoid having to purchase any software, and instead develop an in-houlse rule than can be used by mulitple users. &amp;nbsp;Also, once I am able to create the Irule, then it may be modified in the future to suit other needs. If it were only a few users, the software may be viable, but due to the large number of users and the specific application, an Irule will be our best route.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 14:51:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-03T14:51:16Z</dc:date>
    <item>
      <title>Turn off component visibility for all instances in top asy and sub asy.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021911#M61417</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background on the request&lt;/P&gt;&lt;P&gt;There are times where I need to 'hide' or turn off the visibility of all instances of a certain component (to confirm part alignments etc), while working in the top level assembly. &amp;nbsp;This can amount to hundreds of instances and is very tedious when having to manually select each component in each sub assembly and turn off the assembly. &amp;nbsp;I am trying to create a rule that will 'automatically' turn off the visibility of so called component in the top level assembly, as well as any subsequent sub assemblies. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a rule written that will turn off the visibility of all instances within the current open assembly, but it will not 'drill down' into the sub assemblies and hide the component. &amp;nbsp;The code that I currently have is pasted below. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have yet to figure this out. &amp;nbsp;I've tried traverse assemblies as well as recursive, but with no luck. &amp;nbsp;I'm a very new to the inventor ilogic customization, so my knowledge is limited, if not non-existing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Get the set of occurrences in this assembly document&lt;BR /&gt;oOccurrences = ThisApplication.ActiveDocument.ComponentDefinition.Occurrences&lt;/P&gt;&lt;P&gt;'Cycle through each component in the set&lt;BR /&gt;For Each oComp As ComponentOccurrence In oOccurrences&lt;BR /&gt;'Get the browser name of the component&lt;BR /&gt;oCompName = oComp.Name&lt;BR /&gt;'Check if the desired bit of text is in the component's name&lt;BR /&gt;If InStr(oCompName, "ComponentX") &amp;gt; 0 Then&lt;BR /&gt;If oComp.Visible = True Then&lt;BR /&gt;oComp.Visible = False&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:26:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021911#M61417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-03T14:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off component visibility for all instances in top asy and sub asy.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021963#M61418</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi crenshap,&lt;/P&gt;&lt;P&gt;You could save yourself some time and get hold of the View Rep Hero app from the Inventor App Store here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=appstore.exchange.autodesk.com%3aviewrephero_windows64%3aen" target="_blank"&gt;https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=appstore.exchange.autodesk.com%3aviewrephero_windows64%3aen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It'll let you create an instant dynamic filter for removing all instances of a specific Part Number recursively through an entire assembly. And it's very quick.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:39:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021963#M61418</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2016-02-03T14:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off component visibility for all instances in top asy and sub asy.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021991#M61419</link>
      <description>&lt;P&gt;LukeDavenport,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. &amp;nbsp;However, we are trying to avoid having to purchase any software, and instead develop an in-houlse rule than can be used by mulitple users. &amp;nbsp;Also, once I am able to create the Irule, then it may be modified in the future to suit other needs. If it were only a few users, the software may be viable, but due to the large number of users and the specific application, an Irule will be our best route.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6021991#M61419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-03T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off component visibility for all instances in top asy and sub asy.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6023026#M61435</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went though an exhaustive process with Curtis on this one. He wrote so much code trying to help me with this, which worked 99% of the time. The biggest issue was it was incredibly CPU intensive and killed my machine for up to 10 minutes while the code ran. (Thank to Curtis, this got me into iLogic)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end of the day, I found that creating a custom search in the assembly worked the best.&amp;nbsp; Save your various search filters and run them when you need them. Then its a simple RMB and toggle visibility. The only bug, is you cant select 'On' or 'Off' when some of the items are already toggled, so you may have to perform the process twice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 23:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6023026#M61435</guid>
      <dc:creator>rhasell</dc:creator>
      <dc:date>2016-02-03T23:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off component visibility for all instances in top asy and sub asy.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6024472#M61455</link>
      <description>&lt;P&gt;Thanks all for the help. &amp;nbsp;I was able to work out a rule that accomplished what I was trying to do, and it doesn't seem to take much more than 10 seconds or so to iterate through the top level, as well as any/all subsequent sub assemblies.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:59:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-component-visibility-for-all-instances-in-top-asy-and/m-p/6024472#M61455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T16:59:21Z</dc:date>
    </item>
  </channel>
</rss>

