<?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: Custom Icon Inventor in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8470063#M110504</link>
    <description>&lt;P&gt;hi.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where is this directory where to put the icone files?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Dec 2018 12:52:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-15T12:52:22Z</dc:date>
    <item>
      <title>Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/6281433#M110502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a custom Icon for my macro... several online sources say that if I place an bmp image along with the macros. IVB file ussing the following format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ModuleName.MacroName.Small.bmp&lt;/P&gt;&lt;P&gt;ModuleName.MacroName.Large.bmp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and place these in the same directory of my IVB file that my Icons will change to the image I have defined. This just dosnt work for me and the default Macro icon image is still used. the module futhermore runs fine...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant personally see whats going wrong but I get the feeling I may have not defined my macro properly????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/233516i2BE0729D195A3ACA/image-size/original?v=lz-1&amp;amp;px=-1" border="0" alt="1.png" title="1.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/233517iD20CC84A0B8CFBA0/image-size/original?v=lz-1&amp;amp;px=-1" border="0" alt="2.png" title="2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Source of information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2010/03/buttons-for-vba-macros-in-the-ribbon-user-interface.html" target="_self"&gt;http://modthemachine.typepad.com/my_weblog/2010/03/buttons-for-vba-macros-in-the-ribbon-user-interface.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/6281433#M110502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8393638#M110503</link>
      <description>&lt;P&gt;Edit: it seems i reacted on an old thread. Oh well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the resolution of the images. 16x16 pixels for small. 32x32 pixels for large.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other than that, i don't see much wrong with it. I ran a quick test:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Naamloos.png" style="width: 857px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/568104i4761555E1D3E266A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Naamloos.png" alt="Naamloos.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 16:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8393638#M110503</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2018-11-10T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8470063#M110504</link>
      <description>&lt;P&gt;hi.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where is this directory where to put the icone files?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 12:52:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8470063#M110504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-15T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8470069#M110505</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As per the link in the post:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2010/03/buttons-for-vba-macros-in-the-ribbon-user-interface.html" target="_blank"&gt;This is done in exactly the same way as described before, by creating a bmp file, saving it in the same directory as the .ivb file, and naming it correctly.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 13:01:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/8470069#M110505</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2018-12-15T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10662576#M110506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Yes the bmp image type is working.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;For a dark background, it doesn't meet my expectations.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I need to create a transparent background.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;That is, for the png image type, or for using the ico type.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Vba does not work for these types.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Please confirm my findings.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Or is there any other trick for using png and ico?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 20:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10662576#M110506</guid>
      <dc:creator>kfc10</dc:creator>
      <dc:date>2021-10-02T20:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10662593#M110507</link>
      <description>&lt;P&gt;Is far as I know, with VBA, .bmp-files are your only option. So yeah, transparency is not a possibility.&lt;/P&gt;&lt;P&gt;For icons with transparency, you'll have to create a addin I guess.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 20:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10662593#M110507</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2021-10-02T20:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10663030#M110508</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Thank you for answer.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I stay at the Global Forms panel there I can put ico images.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;It's sad,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;that it does not work for program version 2022.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 07:04:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10663030#M110508</guid>
      <dc:creator>kfc10</dc:creator>
      <dc:date>2021-10-03T07:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10666859#M110509</link>
      <description>&lt;P&gt;I can confirm that in VBA area the only option is bmp, so no transparency.&lt;/P&gt;&lt;P&gt;In the addin area, then more flexibility is offered (ico files are supported if I remember it right).&lt;/P&gt;&lt;P&gt;By the time of concept of DarkMode (2017) I have strongly asked to offer support for Cobalt, Amber and Dark themes at least on AddIn level...&lt;/P&gt;&lt;P&gt;...unfortunately the result was that "Amber" has been discontinued in dark mode (even if many of us love "Dark/Amber"), and I have never seen anything on how to switch icons between light and dark mode.&lt;/P&gt;&lt;P&gt;I have received a wonderful "Inventor UI Guidelines for Custom" (attached) that helps you making your addin consistent with the rest of the program, but never something specific on the "Light/Dark" theme switch.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2883104"&gt;@jason_hetu&lt;/a&gt;: Maybe somebody at Autodesk could clarify the real situation?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 06:49:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10666859#M110509</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2021-10-05T06:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10668692#M110510</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I talked with some of the developers who have some more detailed information on solutions to these issues.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Light and Dark theme:&amp;nbsp;&lt;/STRONG&gt;
&lt;P&gt;&lt;SPAN&gt;Before creating a button (ControlDefinitions.AddButtonDefinition), check the value of Application.ThemeManager.ActiveTheme.Name. This is a string that can be either "LightTheme" or &amp;nbsp;"DarkTheme". Choose your icons based on that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To support a change in theme during a session:&lt;BR /&gt;Listen to the ApplicationEvents.OnApplicationOptionChange event. In your event handler, look at the current value of Application.ThemeManager.ActiveTheme.Name and compare it to a value that you have previously cached. If it has changed, iterate over your cached ButtonDefinition objects and change their StandardIcon and LargeIcon properties.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(You can cache the value in the event handler when the BeforeOrAfter argument is EventTimingEnum.kBefore. Then check if the value has changed when the BeforeOrAfter argument is EventTimingEnum.kAfter).&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Amber Support:&lt;/STRONG&gt;&lt;BR /&gt;We continue to support amber but only for the light theme. We are not creating any new icons in the amber style but will leave all the ones that currently exist. The reason we don't have an amber option in dark theme is that these icons are built for the light theme and will have aliasing issues with light pixels at the edges or not have the correct level of contrast due to the fact that they are designed to work on the light background color.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The developers said that you can check the API to get the icon style similar to the theme color and update accordingly (amber or cobalt).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Icon Transparency Support:&lt;/STRONG&gt;&lt;BR /&gt;There have been some similar questions asked and answered in this:&amp;nbsp;&lt;A href="https://feedback.autodesk.com/project/forum/thread.html?cap=fb14413735ee42c99624e3793b19a0b2&amp;amp;forid=%7Bdeb2224c-a845-44a8-a857-a54f58c97618%7D&amp;amp;topid=%7B2b485d98-0a41-4d62-9944-3156604dc4a4%7D&amp;amp;tp=1&amp;amp;to=asc&amp;amp;ts=last&amp;amp;tl=15&amp;amp;tv=desc#toppost" target="_blank" rel="noopener"&gt;Inventor Beta Forum Post&lt;/A&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;If you are not a member you can sign up here:&amp;nbsp;&lt;A href="https://feedback.autodesk.com/" target="_blank" rel="noopener"&gt;https://feedback.autodesk.com/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10668692#M110510</guid>
      <dc:creator>jason_hetu</dc:creator>
      <dc:date>2021-10-05T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10668699#M110511</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...thank you so much Jason.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Great answer, as usual from you!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10668699#M110511</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2021-10-05T20:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10676561#M110512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For transparency in the VBA icons, Inventor sets all magenta pixels (255, 0, 255) as transparent.&lt;/P&gt;&lt;P&gt;You have to restart inventor to see icon changes.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 19:18:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10676561#M110512</guid>
      <dc:creator>g.georgiades</dc:creator>
      <dc:date>2021-10-08T19:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10680099#M110513</link>
      <description>&lt;P&gt;I tried that years ago, but it did not work. Forgot all about it.&lt;/P&gt;&lt;P&gt;Just tried again, works fine now. Thanks for the reminder.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 10:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10680099#M110513</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2021-10-11T10:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10681371#M110514</link>
      <description>&lt;P&gt;Some experiences with transparency by using magenta. There is transparency, but only &lt;STRONG&gt;full&lt;/STRONG&gt; transparency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So not what i tried to do:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Transparency03.png" style="width: 256px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975967iCB2C10A922D2A73E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transparency03.png" alt="Transparency03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of that is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Transparency01.png" style="width: 334px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975968i8DDF6D0D1464B615/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transparency01.png" alt="Transparency01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Icontest1 has a white background, magenta for Icontest2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So no fuzzy edges and everything is fine&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Transparency02.png" style="width: 334px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975969i7889E77641797525/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transparency02.png" alt="Transparency02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 20:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10681371#M110514</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2021-10-11T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Icon Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10681964#M110515</link>
      <description>&lt;P&gt;Usually what we do if we need to create these type of icons is we will use the background color. Then fill in the part we want to be transparent with the magenta color. This will provide a similar result to your final image but it will look smoother. We use this type of icon for the browser. You may notice that hovers with different background colors show a little of this aliasing but it is better than no transparency.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 03:02:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-icon-inventor/m-p/10681964#M110515</guid>
      <dc:creator>jason_hetu</dc:creator>
      <dc:date>2021-10-12T03:02:52Z</dc:date>
    </item>
  </channel>
</rss>

