<?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 assign layers to materials + colors Ilogic rule in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assign-layers-to-materials-colors-ilogic-rule/m-p/12316826#M159266</link>
    <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a question about ilogic about merging 2 'codes' in to 1. (i'm quite new to Ilogic)&lt;/P&gt;&lt;P&gt;i found a working rule to assign layers to materials to export it to autocad so that not everything is in the (0) layer.&lt;/P&gt;&lt;P&gt;and another one to make drawing line colors the same as the part colors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now for the hard part, i want to have a code to assign the layers to the material and give them the correct color according to the part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iknow it is possible but i just do not know how i can get it working&lt;/P&gt;&lt;P&gt;see attached pictures and files&lt;/P&gt;&lt;P&gt;pic 1 has the lines hidden and are in the styles editor the name of the material&lt;/P&gt;&lt;P&gt;pic 2 has the correct colours of the part but the name of the colour in the styles editor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer with hidden lines.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281197i018B148A4FFF5A50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Layer with hidden lines.PNG" alt="Layer with hidden lines.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layer with correct colors, but without hidden lines.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281196iA00894C95CB87AA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="layer with correct colors, but without hidden lines.PNG" alt="layer with correct colors, but without hidden lines.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacob Walinga&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 12:27:29 GMT</pubDate>
    <dc:creator>jacobKDL69</dc:creator>
    <dc:date>2023-10-19T12:27:29Z</dc:date>
    <item>
      <title>assign layers to materials + colors Ilogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assign-layers-to-materials-colors-ilogic-rule/m-p/12316826#M159266</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a question about ilogic about merging 2 'codes' in to 1. (i'm quite new to Ilogic)&lt;/P&gt;&lt;P&gt;i found a working rule to assign layers to materials to export it to autocad so that not everything is in the (0) layer.&lt;/P&gt;&lt;P&gt;and another one to make drawing line colors the same as the part colors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now for the hard part, i want to have a code to assign the layers to the material and give them the correct color according to the part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iknow it is possible but i just do not know how i can get it working&lt;/P&gt;&lt;P&gt;see attached pictures and files&lt;/P&gt;&lt;P&gt;pic 1 has the lines hidden and are in the styles editor the name of the material&lt;/P&gt;&lt;P&gt;pic 2 has the correct colours of the part but the name of the colour in the styles editor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer with hidden lines.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281197i018B148A4FFF5A50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Layer with hidden lines.PNG" alt="Layer with hidden lines.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layer with correct colors, but without hidden lines.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281196iA00894C95CB87AA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="layer with correct colors, but without hidden lines.PNG" alt="layer with correct colors, but without hidden lines.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacob Walinga&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assign-layers-to-materials-colors-ilogic-rule/m-p/12316826#M159266</guid>
      <dc:creator>jacobKDL69</dc:creator>
      <dc:date>2023-10-19T12:27:29Z</dc:date>
    </item>
  </channel>
</rss>

