<?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: iLogic Change Background Colour in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847931#M115441</link>
    <description>&lt;P&gt;No problem Mitch. Yes I would go through the&amp;nbsp;&lt;SPAN&gt;"My First Plugin" documentation and then compile my code and step into the logic to see how it is working. I did briefly check before uploading it and everything was still compiling and working for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yacoub&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 01:15:56 GMT</pubDate>
    <dc:creator>hossaiy</dc:creator>
    <dc:date>2017-02-02T01:15:56Z</dc:date>
    <item>
      <title>iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/5823608#M115436</link>
      <description>&lt;P&gt;I've written two iLogic codes that change the bacground colour to white before save (so the thumbnail shows the part/assembly cleanly), and then after save to revert to the original colours. The code exists in each part and is triggered to run the same way for each part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works perfectly on single parts, and on assemblies where all the sub-components are open within Inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I make changes and save at the assembly level (while the sub-components are not open in Inventor) the code&amp;nbsp;stops running&amp;nbsp;after the first rule. Manually running the second rule reverts the changes, but the sub-components do not update their respective thumbnails as per the first example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the rules are triggered by the save command I had to split the code into pre and post save because the function can't call a save without going into an infinite loop. The code saves the bacground color to the part location to retrieve after thet save, and then deletes the txt file. I considered making this an external rule, but this would cause issues when we send any parts/assemblies to our clients.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first rule triggered to run before the save is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;fs&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Scripting.FileSystemObject&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;OldColorFile&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;fs&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateTextFile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;OldColorName.txt&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;OldColorSchemeName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;OldColorSchemeName&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveColorScheme&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;
&lt;SPAN&gt;OldColorFile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WriteLine&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;OldColorSchemeName&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;OldColorFile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Close&lt;/SPAN&gt;

&lt;SPAN&gt;OldBackgroundFile&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;fs&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateTextFile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;OldBackground.txt&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;OldBackground&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BackgroundTypeEnum&lt;/SPAN&gt;
&lt;SPAN&gt;OldBackground&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ColorSchemes&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BackgroundType&lt;/SPAN&gt;
&lt;SPAN&gt;OldBackgroundFile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WriteLine&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;OldBackground&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;OldBackgroundFile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Close&lt;/SPAN&gt;

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ColorSchemes&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Presentation&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Activate&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ColorSchemes&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BackgroundType&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;52737&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The second rule, which is triggered to run after the save is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IO&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oRead&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&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AN&gt;

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ColorSchemes&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;bline&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Activate&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ColorSchemes&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BackgroundType&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;aline&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GeneralOptions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Show3DIndicator&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 17:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/5823608#M115436</guid>
      <dc:creator>TA.Fehr</dc:creator>
      <dc:date>2015-09-18T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/5834196#M115437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;am not sure if you've already solved your problem, but i thought i'd share the following with you anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this sort of thing is more suited for a plug-in. Here is a video of one that i put together (it basically shows an assembly file already opened, and when i click the button "Save-all" in my plug-in, it opens all the refrenced part files and re-saves them such that the thumbnails now have a white back-ground):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1YHNx2b" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&lt;A href="http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=17324828" target="_blank"&gt;Here &lt;/A&gt;is a link for information on creating plug-ins, but feel free to ask too.&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="iframe-container"&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Sat, 26 Sep 2015 23:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/5834196#M115437</guid>
      <dc:creator>hossaiy</dc:creator>
      <dc:date>2015-09-26T23:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847448#M115438</link>
      <description>&lt;P&gt;Hi, Sorry for the old post bump but have spent hours searching for a simple way to do exactly what's in your video above. Resave all the files with the click of a button with a white background. So when they're exported to a word parts list with thumbnails (using another plugin) and printed in Black and White they show up looking professional.&lt;/P&gt;&lt;P&gt;Then reset the current view preference to the user preference colour scheme background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was an All Thumbs plugin with similar functionality but all the links are dead and I am unable to download.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/inventor-forum/white-background-in-thumbnails-regardless-of-user-background-set/td-p/2867116" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-forum/white-background-in-thumbnails-regardless-of-user-background-set/td-p/2867116&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you wiling to share your plugin/code that makes this happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Mitchell&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:36:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847448#M115438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T21:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847630#M115439</link>
      <description>&lt;P&gt;Hi Mitchell,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;amazingly i did still have it lying around on my machine, and i briefly tried it out and it still seemed to be working too. I&amp;nbsp;am uploading it for you, but i really knocked this up on a rainy sunday afternoon, so should only be used as a rough guide.&lt;/P&gt;
&lt;P&gt;Anyway, hope it is useful to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Yacoub&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:40:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847630#M115439</guid>
      <dc:creator>hossaiy</dc:creator>
      <dc:date>2017-02-01T22:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847832#M115440</link>
      <description>&lt;P&gt;Awesome, Thankyou so much. was planning on teaching myself plugins soon anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should just be able to follow the "My First Plugin" documentation and then compile your code?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 00:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847832#M115440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-02T00:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847931#M115441</link>
      <description>&lt;P&gt;No problem Mitch. Yes I would go through the&amp;nbsp;&lt;SPAN&gt;"My First Plugin" documentation and then compile my code and step into the logic to see how it is working. I did briefly check before uploading it and everything was still compiling and working for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yacoub&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 01:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/6847931#M115441</guid>
      <dc:creator>hossaiy</dc:creator>
      <dc:date>2017-02-02T01:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/8035191#M115442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it tried this in Inventor 2018, but i get this failure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fehler in Regel: Test4 in Dokument: Bauteil1.ipt&lt;BR /&gt;Unbekannter Fehler (Ausnahme von HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException (0x80004005): Unbekannter Fehler (Ausnahme von HRESULT: 0x80004005 (E_FAIL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bei System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp;amp; msgData)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bei Inventor.ColorSchemes.set_BackgroundType(BackgroundTypeEnum )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bei Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bei iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there is a problem with following line:&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ColorSchemes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BackgroundType&lt;/SPAN&gt; = 52737&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone else the same problem. I can´t get it run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 13:04:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/8035191#M115442</guid>
      <dc:creator>daniel.streinz</dc:creator>
      <dc:date>2018-05-30T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/9742276#M115443</link>
      <description>&lt;P&gt;Maybe can be of use for someone so I'll just leave this iLogic snippet here.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oView As View = ThisApplication.ActiveView
 Dim oCamera As Inventor.Camera
    oCamera = oView.Camera

Dim iCurrentBakground = ThisApplication.ColorSchemes.BackgroundType.GetHashCode()


Dim oCurrentColorSceme = ThisApplication.ActiveColorScheme
''MsgBox(oCurrentColorSceme.)

Dim sCurrentScheme = ThisApplication.ActiveColorScheme '''Get the current scheme
'MsgBox(sCurrentScheme.Name) '''Show the current scheme name
If sCurrentScheme.Name &amp;lt;&amp;gt; "Presentation" Then
	ThisApplication.ColorSchemes.Item("Presentation").Activate 
Else 
	'ThisApplication.ColorSchemes.Item("PreferedScheme").Activate '''' Your prefered scheme here 
End If

If ThisApplication.ColorSchemes.BackgroundType &amp;lt;&amp;gt; 52737 And sCurrentScheme.Name = "Presentation" Then
'	MsgBox(iCurrentBakground)
	ThisApplication.ColorSchemes.BackgroundType = 52737
	oCamera.Perspective = True
	oCamera.ApplyWithoutTransition
	oView.DisplayMode = DisplayModeEnum.kShadedRendering
	oView.Update
Else
'	MsgBox("wait")
	ThisApplication.ColorSchemes.BackgroundType = 52739
	oCamera.Perspective = False
    oCamera.ApplyWithoutTransition
	oView.DisplayMode = DisplayModeEnum.kShadedWithEdgesRendering
	oView.Update
End If


ThisApplication.ActiveView.Update()&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:15:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/9742276#M115443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-11T13:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10033142#M115444</link>
      <description>&lt;P&gt;Nice code. I have been looking for a list of the Backgroundtype" codes, but have been unsuccessful. Can anyone point me in the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 20:09:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10033142#M115444</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2021-01-26T20:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10035525#M115445</link>
      <description>&lt;P&gt;Here is a link to Inventor's online help page for the Enum behind that setting.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-83BCCAD3-672E-44C2-A095-BE0E644B6344" target="_blank" rel="noopener"&gt;BackgroundTypeEnum Enumerator&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may even be easier to follow later if you specify it using&amp;nbsp; = BackgroundTypeEnum.kOneColorBackgroundType instead of = 52737.&amp;nbsp; That's what I usually do when working with Enum's, just so others (and myself) can more easily read through it a year from now and fully understand it better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10035525#M115445</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-01-27T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10036097#M115446</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:41:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/10036097#M115446</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2021-01-27T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Change Background Colour</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/11546722#M115447</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apart from this I'd rather recommend replace line&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;ThisApplication.ColorSchemes.Item("Presentation").Activate&lt;/LI-CODE&gt;&lt;P&gt;with&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;ThisApplication.ColorSchemes(7).Activate&lt;/LI-CODE&gt;&lt;P&gt;That would make iLogic-workaround usable for any Inventor localization (not only English).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-change-background-colour/m-p/11546722#M115447</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2022-11-11T18:11:33Z</dc:date>
    </item>
  </channel>
</rss>

