<?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 component edge color in IDW view in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5903568#M137571</link>
    <description>&lt;P&gt;Restarting up an old thread. Anyone with any point of view on this please chime in. I'm facing similar issues... Anybody at all that can say anything either supporting or opposing the OP's thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Hello? Is there anybody in&amp;nbsp;there? Just nod if you can hear me. Is there anyone at home?"&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2015 19:22:32 GMT</pubDate>
    <dc:creator>Kyle.Arnold</dc:creator>
    <dc:date>2015-11-11T19:22:32Z</dc:date>
    <item>
      <title>iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3325285#M137566</link>
      <description>&lt;P&gt;Is there code for changing the color (or other properties) of the visible edges of a component in a drawing view, the same way I can do it manually by right-clicking a component and choosing Properties?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote this rule to change the color of each individual drawing curve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Ignore the "&amp;lt;!".&amp;nbsp; It's the only way I could get the iLogic code to successfully post in the message &lt;img id="smileymad" class="emoticon emoticon-smileymad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-mad.png" alt="Smiley Mad" title="Smiley Mad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&amp;lt;!&lt;STRONG&gt;Dim&lt;/STRONG&gt; drawViews &lt;STRONG&gt;As&lt;/STRONG&gt;DrawingView&lt;P&gt;&lt;STRONG&gt;For&lt;/STRONG&gt; &lt;STRONG&gt;Each&lt;/STRONG&gt; drawViews &lt;STRONG&gt;In&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.ActiveDocument.&lt;STRONG&gt;ActiveSheet&lt;/STRONG&gt;.DrawingViews&lt;/P&gt;&lt;P&gt;occ3 &lt;STRONG&gt;=&lt;/STRONG&gt; drawViews.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Occurrences.ItemByName&lt;STRONG&gt;(&lt;/STRONG&gt;"GF_Plenum:1"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; newColor3 &lt;STRONG&gt;As&lt;/STRONG&gt; Color&lt;/P&gt;&lt;P&gt;newColor3 &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateColor&lt;STRONG&gt;(0&lt;/STRONG&gt;,&lt;STRONG&gt;255&lt;/STRONG&gt;,&lt;STRONG&gt;255)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; drawcurves3 &lt;STRONG&gt;As&lt;/STRONG&gt; DrawingCurvesEnumerator&lt;/P&gt;&lt;P&gt;drawcurves3 &lt;STRONG&gt;=&lt;/STRONG&gt; drawViews.DrawingCurves&lt;STRONG&gt;(&lt;/STRONG&gt;occ3&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; drawCurve3 &lt;STRONG&gt;As&lt;/STRONG&gt; DrawingCurve&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For&lt;/STRONG&gt; &lt;STRONG&gt;Each&lt;/STRONG&gt; drawCurve3 &lt;STRONG&gt;In&lt;/STRONG&gt; drawcurves3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drawCurve3.&lt;STRONG&gt;Color&lt;/STRONG&gt;&lt;STRONG&gt;()&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; newColor3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the problem with this rule is that it selects each of the drawing curves and individually sets the color property.&amp;nbsp; For a drawing of a small assembly, this would work fine.&amp;nbsp; But I have a medium-to-large assembly, and when the rule gets to a certain view, it takes FOREVER to run through this rule.&amp;nbsp; If I manually set the component properties (rather than the edge properties), it only takes a fraction of a second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write code to do what I can manually do?&amp;nbsp; Just to be clear, there are a few ways to set the properties of a component in a drawing view.&amp;nbsp; One is to select each of the edges individually and apply the properties.&amp;nbsp; Another is to select the component in the browser, right-click, choose "Select as Edges", and then apply properties.&amp;nbsp; And yet another is to select the component in the browser, right-click and choose Properties (see attached image).&amp;nbsp; I would like to do this last one with code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any iLogic or VBA gurus out there know how to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:12:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3325285#M137566</guid>
      <dc:creator>cwhetten</dc:creator>
      <dc:date>2012-02-09T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3325625#M137567</link>
      <description>&lt;P&gt;I will subscribe to this thread as I face the same problem.&lt;/P&gt;&lt;P&gt;I have used the rule that changes the parts colors by assigning each curve to a layer, but it turned out that this not a good way to color the parts in idw. After reopening those drawings, many curves were black again (default color).&lt;/P&gt;&lt;P&gt;I was also thinking about a rule that will color a part through its properties, like I do it manually. Hope somebody can do it. I'm really struggling with rules and everything related to programming &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alexandru&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 18:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3325625#M137567</guid>
      <dc:creator>fakeru</dc:creator>
      <dc:date>2012-02-09T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3326403#M137568</link>
      <description>&lt;P&gt;I have a feeling this is not available in the API.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 03:19:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/3326403#M137568</guid>
      <dc:creator>PACDrafting</dc:creator>
      <dc:date>2012-02-10T03:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5058408#M137569</link>
      <description>&lt;P&gt;I would like to know, if in 2014 this problem can be solved finally.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did anybody figure out how to do this?&lt;BR /&gt;&lt;BR /&gt;Here is the original Thread:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/Inventor-General/iLogic-Rule-for-idw-drawing/td-p/3124520/page/2" target="_blank"&gt;http://forums.autodesk.com/t5/Inventor-General/iLogic-Rule-for-idw-drawing/td-p/3124520/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thread:&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/Inventor-Customization/part-colour-be-line-colour-in-idw/td-p/2888796" target="_blank"&gt;http://forums.autodesk.com/t5/Inventor-Customization/part-colour-be-line-colour-in-idw/td-p/2888796&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 14:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5058408#M137569</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2014-05-27T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5058560#M137570</link>
      <description>&lt;P&gt;&lt;IMG alt="line colors.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/102728iA2237CDA10D1027D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" align="center" title="line colors.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any code that would be able to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 15:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5058560#M137570</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2014-05-27T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5903568#M137571</link>
      <description>&lt;P&gt;Restarting up an old thread. Anyone with any point of view on this please chime in. I'm facing similar issues... Anybody at all that can say anything either supporting or opposing the OP's thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Hello? Is there anybody in&amp;nbsp;there? Just nod if you can hear me. Is there anyone at home?"&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 19:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/5903568#M137571</guid>
      <dc:creator>Kyle.Arnold</dc:creator>
      <dc:date>2015-11-11T19:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317488#M137572</link>
      <description>&lt;P&gt;I all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also looking at something like this.&lt;/P&gt;&lt;P&gt;I would like to know if there is any other way than the traditional :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad-mechanical/getting-started/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Mechanical/files/GUID-9492B40A-5F89-4FE9-9840-7C78919E2521-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad-mechanical/getting-started/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Mechanical/files/GUID-9492B40A-5F89-4FE9-9840-7C78919E2521-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way the user have to select each coponenet one buy one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why don't inventor go and capture selected apparence of the model and apply it on the edges ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone with a simpler solution or&amp;nbsp; any way to do it with Ilogic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 check each item&amp;nbsp;component in&amp;nbsp;a dwg&lt;/P&gt;&lt;P&gt;2 check the componenet apperance parameter = A&lt;/P&gt;&lt;P&gt;3 select as edges&lt;/P&gt;&lt;P&gt;4 apply layout according to A&lt;/P&gt;&lt;P&gt;this is the logic I would like to creat... simple to right not simple for find the terme in Ilogic language....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I working on this for more than a year, and I will not give up but a bit of help will be really appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks guys&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 09:42:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317488#M137572</guid>
      <dc:creator>sebastien008</dc:creator>
      <dc:date>2016-05-10T09:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317874#M137573</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2498671"&gt;@sebastien008﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2010/10/changing-drawing-curves-to-match-assembly-color.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2010/10/changing-drawing-curves-to-match-assembly-color.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Not ilogic but I assume it can be converted to an ilogic rule vs vba&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will do this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="750c3d36-b97b-4a61-aa10-fb0f2434aa1f" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/750c3d36-b97b-4a61-aa10-fb0f2434aa1f" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2016 13:09:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317874#M137573</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2016-05-10T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317882#M137574</link>
      <description>&lt;P&gt;ill see if i can stay late one of these days to figure it out. But no promises. It seems easy now with 2016.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 13:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6317882#M137574</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2016-05-10T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6687666#M137575</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find attached my own script based on so many online help.&lt;/P&gt;&lt;P&gt;hope this can help you guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks to MOD THE MACHINE THOUGH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 06:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/6687666#M137575</guid>
      <dc:creator>sebastien008</dc:creator>
      <dc:date>2016-11-15T06:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic component edge color in IDW view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/9755045#M137576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have found this old thread, but for me it's still an actual problem. The Code from Sebastien / Mod the Machine works great. However the problem is, &lt;SPAN&gt;it seems to change alle the lines and put them in the same layer and therefore they lose there linetypes(continuous and hidden lines) is it possible to keep the linetype and change the colour?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe there are 2 runs, 1 for visible and 1 for hidden lines required?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone knows a solution? Help is very appreciated!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in Advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:02:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-component-edge-color-in-idw-view/m-p/9755045#M137576</guid>
      <dc:creator>BRABO_1</dc:creator>
      <dc:date>2020-09-18T11:02:45Z</dc:date>
    </item>
  </channel>
</rss>

