<?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 Change Thumbnail background for Content Center generated parts in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7776751#M92652</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an iPart in your Content Center that changes shape depending on your iPart selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can update the BOM Thumbnail with the following iLogic rule.&lt;/P&gt;&lt;P&gt;Make an iLogic rule that triggers Before Save and the following code will updated the BOM Thumbnail even for Content Center parts:&lt;/P&gt;&lt;PRE&gt;ThisDoc.Document.SetThumbnailSaveOption (ThumbnailSaveOptionEnum.kActiveWindowOnSave)&lt;/PRE&gt;&lt;P&gt;But how do you change the Thumbnail Background color?&lt;/P&gt;&lt;P&gt;Because ThisApplication, does not give you access to the Application Object that generates the Content Center part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code does not work when the part is generated from the Content Center:&lt;/P&gt;&lt;PRE&gt;ThisApplication.ColorSchemes.Item("Presentation").Activate
ThisApplication.ColorSchemes.BackgroundType = BackgroundTypeEnum.kOneColorBackgroundType&lt;/PRE&gt;&lt;P&gt;Changing your background color before you generate the part does not change the background color for the Content Center part.&lt;/P&gt;&lt;P&gt;The Content Center part is generated with some default settings, that is not affected by your current settings in the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colbjørn.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 11:29:38 GMT</pubDate>
    <dc:creator>Colbjørn</dc:creator>
    <dc:date>2018-02-14T11:29:38Z</dc:date>
    <item>
      <title>Change Thumbnail background for Content Center generated parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7776751#M92652</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an iPart in your Content Center that changes shape depending on your iPart selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can update the BOM Thumbnail with the following iLogic rule.&lt;/P&gt;&lt;P&gt;Make an iLogic rule that triggers Before Save and the following code will updated the BOM Thumbnail even for Content Center parts:&lt;/P&gt;&lt;PRE&gt;ThisDoc.Document.SetThumbnailSaveOption (ThumbnailSaveOptionEnum.kActiveWindowOnSave)&lt;/PRE&gt;&lt;P&gt;But how do you change the Thumbnail Background color?&lt;/P&gt;&lt;P&gt;Because ThisApplication, does not give you access to the Application Object that generates the Content Center part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code does not work when the part is generated from the Content Center:&lt;/P&gt;&lt;PRE&gt;ThisApplication.ColorSchemes.Item("Presentation").Activate
ThisApplication.ColorSchemes.BackgroundType = BackgroundTypeEnum.kOneColorBackgroundType&lt;/PRE&gt;&lt;P&gt;Changing your background color before you generate the part does not change the background color for the Content Center part.&lt;/P&gt;&lt;P&gt;The Content Center part is generated with some default settings, that is not affected by your current settings in the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colbjørn.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:29:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7776751#M92652</guid>
      <dc:creator>Colbjørn</dc:creator>
      <dc:date>2018-02-14T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change Thumbnail background for Content Center generated parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7776819#M92653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Colbjørn,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, the background color is follow system color setting. Try to go to application option -&amp;gt; Color and select a color scheme, the thumbnail background will up to date once save it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps a little bit.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7776819#M92653</guid>
      <dc:creator>Xun.Zhang</dc:creator>
      <dc:date>2018-02-14T12:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Thumbnail background for Content Center generated parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7777068#M92654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2872771"&gt;@Colbjørn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned you need to save the file to set the thumbnail. Here is a quick iLogic routine to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also just as a tip, you can search and ask programming questions of this type on the&lt;STRONG&gt; Inventor Customization forum&lt;/STRONG&gt;:&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;oDoc = ThisApplication.ActiveEditDocument

'get current colorcheme name 
oColorScheme = ThisApplication.ActiveColorScheme.Name

'Change to Presentation
ThisApplication.ColorSchemes.Item("Presentation").Activate

'set iproperty to use ISO view on save
oDoc.SetThumbnailSaveOption _
(ThumbnailSaveOptionEnum.kActiveComponentIsoViewOnSave)

'save the file
oDoc.Save

'Change back to original scheme
ThisApplication.ColorSchemes.Item(oColorScheme).Activate &lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:45:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7777068#M92654</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2018-02-14T13:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change Thumbnail background for Content Center generated parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7781612#M92655</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following code gives you access to the Application Object during the part generation from The Content Center.&lt;/P&gt;&lt;PRE&gt;ThisServer.ColorSchemes.Item("Presentation").Activate
ThisServer.ColorSchemes.BackgroundType = BackgroundTypeEnum.kOneColorBackgroundType&lt;/PRE&gt;&lt;P&gt;This didn't solve my "problem" but it answered my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colbjørn.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 19:23:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-thumbnail-background-for-content-center-generated-parts/m-p/7781612#M92655</guid>
      <dc:creator>Colbjørn</dc:creator>
      <dc:date>2018-02-15T19:23:28Z</dc:date>
    </item>
  </channel>
</rss>

