<?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: Detect active tab in inventor in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11795303#M149717</link>
    <description>&lt;P&gt;For this purpose you can use this events for example&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-4ADCC5B5-4558-4D0E-8B5D-A59AF205283E" target="_blank" rel="noopener"&gt;ApplicationEvents.OnActivateView Event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-944736BD-E328-4887-9C0E-A496BF715F67" target="_blank" rel="noopener"&gt;ApplicationEvents.OnActivateDocument Event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 07:11:13 GMT</pubDate>
    <dc:creator>Michael.Navara</dc:creator>
    <dc:date>2023-03-03T07:11:13Z</dc:date>
    <item>
      <title>Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11793566#M149689</link>
      <description>&lt;P&gt;Hi everyone, &lt;SPAN&gt;Is it possible to detect when the active tab changes in Inventor and execute a rule automatically?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows how to achieve this, I'd be grateful.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:12:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11793566#M149689</guid>
      <dc:creator>Luis_Pacheco_3D</dc:creator>
      <dc:date>2023-03-02T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11793978#M149694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10042483"&gt;@Luis_Pacheco_3D&lt;/a&gt;.&amp;nbsp; I do not think that is possible right now.&amp;nbsp; I know that the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=RibbonTab" target="_blank" rel="noopener"&gt;RibbonTab&lt;/A&gt; object has a property called '&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=RibbonTab_Active" target="_blank" rel="noopener"&gt;Active&lt;/A&gt;' that we can check the status of, but I have never seen a specific event that Autodesk has given us access to through the Inventor API for when a RibbonTab gets activated.&amp;nbsp; They obviously have something on their end, but I just don't think it has been exposed to us users yet.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 17:24:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11793978#M149694</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-03-02T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794216#M149699</link>
      <description>&lt;P&gt;It is possible to do this with VBA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me an example to get the name of the active ribbon tab with ilogic? I have an idea to work with that.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 19:00:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794216#M149699</guid>
      <dc:creator>Luis_Pacheco_3D</dc:creator>
      <dc:date>2023-03-02T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794259#M149700</link>
      <description>&lt;P&gt;Sure.&amp;nbsp; Below is a simple example that, when ran, will show a message telling you which tab is currently active.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oEnv As Inventor.Environment = ThisApplication.UserInterfaceManager.ActiveEnvironment
For Each oTab As RibbonTab In oEnv.Ribbon.RibbonTabs
	If oTab.Active Then
		MsgBox("The tab named '" &amp;amp; oTab.DisplayName &amp;amp; "' is currently active.", vbInformation, "")
	End If
Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 19:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794259#M149700</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-03-02T19:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794266#M149701</link>
      <description>&lt;P&gt;This iLogic rule will give you the name of the active ribbon tab (in the active ribbon)&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;For Each ribbon As Ribbon In ThisApplication.UserInterfaceManager.Ribbons
    If (Not Ribbon.Active) Then Continue For

    For Each ribbonTab As RibbonTab In Ribbon.RibbonTabs
        If (RibbonTab.Active) Then
            MsgBox(String.Format("Ribbon tab '{0}' in ribbon '{1}' is active",
				RibbonTab.DisplayName, Ribbon.InternalName))
        End If
    Next
Next&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 19:25:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794266#M149701</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2023-03-02T19:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794310#M149703</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp; My apologies to you, I guess I used the wrong term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I say &lt;STRONG&gt;ACTIVE&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;TAB, &lt;/STRONG&gt;I refer to the item that I show in the image below.&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="luispacheco6P5Y8_0-1677785844158.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1183870i05063402B94B9044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luispacheco6P5Y8_0-1677785844158.png" alt="luispacheco6P5Y8_0-1677785844158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My bad.&amp;nbsp; Sorry. In Spanish, I call it "Pestaña". The active Document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, with the correction, it is possible to run a specific rule when I change the "Pestaña"?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 19:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794310#M149703</guid>
      <dc:creator>Luis_Pacheco_3D</dc:creator>
      <dc:date>2023-03-02T19:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794342#M149704</link>
      <description>&lt;P&gt;I think one of these two lines may be what you are looking for then.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oActiveDoc As Document = ThisApplication.ActiveDocument
Dim oVTab1 As ViewTab = oActiveDoc.Views.Item(1).ViewTab
Dim oVTab2 As ViewTab = ThisApplication.ActiveView.ViewTab&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 20:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11794342#M149704</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-03-02T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Detect active tab in inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11795303#M149717</link>
      <description>&lt;P&gt;For this purpose you can use this events for example&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-4ADCC5B5-4558-4D0E-8B5D-A59AF205283E" target="_blank" rel="noopener"&gt;ApplicationEvents.OnActivateView Event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-944736BD-E328-4887-9C0E-A496BF715F67" target="_blank" rel="noopener"&gt;ApplicationEvents.OnActivateDocument Event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 07:11:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/detect-active-tab-in-inventor/m-p/11795303#M149717</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2023-03-03T07:11:13Z</dc:date>
    </item>
  </channel>
</rss>

