<?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: 2016 colorize surfaces ipt with ilogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904851#M55538</link>
    <description>&lt;P&gt;what's the error? &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 17:59:06 GMT</pubDate>
    <dc:creator>JhoelForshav</dc:creator>
    <dc:date>2020-11-30T17:59:06Z</dc:date>
    <item>
      <title>2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9900713#M55533</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Does anybody know if it is possible in Inventor 2016 to colorize all surfaces in one color from an ipt with ilogic?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 09:18:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9900713#M55533</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-11-28T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9900923#M55534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you after having each part in a different color - this was an idea floating around on the idea station and somebody had made a vba macro - if this is what you are after&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/visual-style-every-part-with-different-color/idi-p/8713658" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/visual-style-every-part-with-different-color/idi-p/8713658&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 12:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9900923#M55534</guid>
      <dc:creator>leowarren34</dc:creator>
      <dc:date>2020-11-28T12:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9902160#M55535</link>
      <description>&lt;P&gt;Thanks for your reply but it is not what I'm looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An ipt as raw casting is machined in an iam. The machined surfaces must be red so with real painting it will be obvious which surfaces to paint and which not.&lt;/P&gt;&lt;P&gt;Now I make the material from the ipt red and then manually all surfaces gray through Properties, so in the iam the machined surfaces come out red again.&lt;/P&gt;&lt;P&gt;To give manually all surfaces a different color is time consuming, therefore the question if it is possible to do this in 2016 with ilogic.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 13:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9902160#M55535</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-11-29T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904519#M55536</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I understand correctly that you want to color every face in a part from an iLogic rule within the part (In part environment)&lt;/P&gt;
&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Red"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSolid&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSolid&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetRenderStyle&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;kOverrideRenderStyle&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oStyle&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;That will color every face in the part red.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:31:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904519#M55536</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-30T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904822#M55537</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes, that's exactly what I'm looking for but I'm complete noob at this.&lt;/P&gt;&lt;P&gt;Anyway managed to run it but got an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904822#M55537</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-11-30T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904851#M55538</link>
      <description>&lt;P&gt;what's the error? &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:59:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904851#M55538</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-30T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904867#M55539</link>
      <description>&lt;P&gt;I didn't realize that pics were not uploaded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E2.PNG" style="width: 518px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850297i62F9EC0DA881017D/image-size/large?v=v2&amp;amp;px=999" role="button" title="E2.PNG" alt="E2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E1.PNG" style="width: 528px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850296i9CD6BAF2D40C45F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="E1.PNG" alt="E1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 18:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9904867#M55539</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-11-30T18:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9905022#M55540</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you dont have the renderstyle "Red"...&lt;/P&gt;
&lt;P&gt;Does this work then? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Red_Color"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetAmbientColor&lt;/SPAN&gt;(255, 0, 0)
	&lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetDiffuseColor&lt;/SPAN&gt;(255, 0, 0)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetRenderStyle&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;kOverrideRenderStyle&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Nov 2020 19:03:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9905022#M55540</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-30T19:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906160#M55541</link>
      <description>&lt;P&gt;Now I got this reporting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E4.PNG" style="width: 520px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850509i8318954BE73780EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="E4.PNG" alt="E4.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E2.PNG" style="width: 527px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850510i65CD1D25DE4E4BF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="E2.PNG" alt="E2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first one made me check if I have all service packs. Autodesk Desktop App is telling I'm up to date but in Inventor I don't see any SP's installed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E5.PNG" style="width: 644px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850511i52CCAC22BA6FD10A/image-size/large?v=v2&amp;amp;px=999" role="button" title="E5.PNG" alt="E5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to install SP1 doesn't do anything and when I ty to install SP2 it says to install SP1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering ilogic: I opened Add Rule and pasted the code, after OK I got the error.&lt;/P&gt;&lt;P&gt;ipt attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E6.PNG" style="width: 870px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850512i664A4B2C97A1F2D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="E6.PNG" alt="E6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:49:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906160#M55541</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-12-01T06:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906195#M55542</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413" target="_blank"&gt;@mgeurts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it doesn't get the StyleSourceTypeEnum correct with just kOverrideRenderStyle...&lt;/P&gt;
&lt;P&gt;Could try changing it to this:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Red_Color"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;
  &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;)
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetAmbientColor&lt;/SPAN&gt;(255, 0, 0)
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetDiffuseColor&lt;/SPAN&gt;(255, 0, 0)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetRenderStyle&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;StyleSourceTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kOverrideRenderStyle&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;)
 &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Or this:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Red_Color"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyle&lt;/SPAN&gt;
  &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;styleExists&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oRenderStyles&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oName&lt;/SPAN&gt;)
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetAmbientColor&lt;/SPAN&gt;(255, 0, 0)
 &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetDiffuseColor&lt;/SPAN&gt;(255, 0, 0)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
 &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSurfBod&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetRenderStyle&lt;/SPAN&gt;(37123, &lt;SPAN style="color: #800000;"&gt;myStyle&lt;/SPAN&gt;)
 &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;It works for me in 2020 either way - See screencast. I can't test in 2016 though...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 92.1875%;"&gt;&lt;IFRAME width="640" height="590" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/59946e59-3a9c-49e7-ad70-b3473af0f493" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9b158824-a9fa-4f9d-8c87-ab130feb4f61" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/9b158824-a9fa-4f9d-8c87-ab130feb4f61"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7100e33a-e0ce-4101-b9d2-9afca8f9e518" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/7100e33a-e0ce-4101-b9d2-9afca8f9e518"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="615cc502-ed6a-42b9-81e3-f7d7d24351dc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/615cc502-ed6a-42b9-81e3-f7d7d24351dc"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="00c8db1e-7bdf-405e-b24f-b5be5d4c1852" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/00c8db1e-7bdf-405e-b24f-b5be5d4c1852"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b73ec756-e590-4b53-b136-74986cab4bdf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/b73ec756-e590-4b53-b136-74986cab4bdf"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d5878df2-4317-404f-a8e9-218e4e0baac8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/d5878df2-4317-404f-a8e9-218e4e0baac8"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aed7437b-cb92-49ef-9dbb-9b2c45389316" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/aed7437b-cb92-49ef-9dbb-9b2c45389316"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ebf47c71-404c-4350-845a-640c4a0e7484" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/ebf47c71-404c-4350-845a-640c4a0e7484"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1b9a114e-d5e6-4bb2-a340-772b4f1eeeee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/1b9a114e-d5e6-4bb2-a340-772b4f1eeeee"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ebefc64e-9243-4d20-9ba0-94d08e3aec04" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/ebefc64e-9243-4d20-9ba0-94d08e3aec04"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e3e51d2a-fdab-42a4-9a5b-12d371d64e60" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e3e51d2a-fdab-42a4-9a5b-12d371d64e60"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1168a742-a54a-47e4-8e5c-c8fdde6e56de" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/1168a742-a54a-47e4-8e5c-c8fdde6e56de"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="63932171-3b59-4079-a504-bea3be54e549" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/63932171-3b59-4079-a504-bea3be54e549"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="85b3b9d4-b3c3-451f-bdef-15d437388dc2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/85b3b9d4-b3c3-451f-bdef-15d437388dc2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="08325df6-be52-4d4c-8378-f91f70d18459" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/08325df6-be52-4d4c-8378-f91f70d18459"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="0f11fb60-7d73-4b7d-9fb2-7fc3f9464d79" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/0f11fb60-7d73-4b7d-9fb2-7fc3f9464d79"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="699b7d53-4392-4a66-a7ea-64f2bba771c9" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/699b7d53-4392-4a66-a7ea-64f2bba771c9"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27267123-5435-4abc-9826-37debb103ac1" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27267123-5435-4abc-9826-37debb103ac1"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="281bed07-1468-4ec1-875c-a4669be8cdd4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/281bed07-1468-4ec1-875c-a4669be8cdd4"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5f902d27-94e1-4964-8d9f-c316b59bd0ac" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/5f902d27-94e1-4964-8d9f-c316b59bd0ac"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4fb7ce56-87d5-46c8-af62-a7e46f739e14" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/4fb7ce56-87d5-46c8-af62-a7e46f739e14"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="11907bac-4f19-4912-b02e-5d8c0f5b8e3f" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/11907bac-4f19-4912-b02e-5d8c0f5b8e3f"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8227e8e8-2fce-42df-8294-feb011d9ab6b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8227e8e8-2fce-42df-8294-feb011d9ab6b"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9af033da-61df-49d2-a601-021c93ce87b5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/9af033da-61df-49d2-a601-021c93ce87b5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="22f8c13a-0b3d-4e17-8ded-93ee8bb7fee0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/22f8c13a-0b3d-4e17-8ded-93ee8bb7fee0"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dcd5500e-62bc-4b32-8355-54e1975d9048" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dcd5500e-62bc-4b32-8355-54e1975d9048"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:17:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906195#M55542</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-12-01T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906214#M55543</link>
      <description>&lt;P&gt;Good morning!&lt;/P&gt;&lt;P&gt;Both codes are working. Many thanks for your effort.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:32:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906214#M55543</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-12-01T07:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906223#M55544</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/663413"&gt;@mgeurts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help! I guess that was the problem with the first code i posted also then...&lt;/P&gt;
&lt;P&gt;So something like this probably works as well?&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oStyle&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RenderStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RenderStyles&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Red"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSolid&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSolid&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetRenderStyle&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;StyleSourceTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kOverrideRenderStyle&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oStyle&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906223#M55544</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-12-01T07:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2016 colorize surfaces ipt with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906353#M55545</link>
      <description>&lt;P&gt;Yes, this one works also.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:05:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/2016-colorize-surfaces-ipt-with-ilogic/m-p/9906353#M55545</guid>
      <dc:creator>mgeurts</dc:creator>
      <dc:date>2020-12-01T09:05:18Z</dc:date>
    </item>
  </channel>
</rss>

