<?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: how to use Inline defined materials for Cprism in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341293#M1913</link>
    <description>&lt;P&gt;Hi A_Smith,&lt;/P&gt;
&lt;P&gt;No a numerical expression is required for mat1, mat2 and mat3 variable,&lt;/P&gt;
&lt;P&gt;but you can easily set them with the IND command :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;define material 'purple' 2, 1, 0, 1
define material 'white' 2, 1, 1, 1



mat1 = IND (MATERIAL, 'purple')

mat3 = IND (MATERIAL, 'white')


_si=15



pen 1


cprism_{3} 'white' , 'white' , 'white' , 0,
5, 2,
0, 0, 0, _si, mat1,
0, 1, 0, _si, mat1,
1, 1, 0, _si, mat1,
1, 0, 0, _si, mat1,
0, 0, 0, -1, mat1



add 2, 2, 0

cprism_{3} 'purple', 'purple', 'purple', 0,
5, 2,
0, 0, 0, _si, mat3,
0, 1, 0, _si, mat1,
1, 1, 0, _si, mat3,
1, 0, 0, _si, mat1,
0, 0, 0, -1, mat3&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 17 Jun 2022 02:37:41 GMT</pubDate>
    <dc:creator>BrunoH</dc:creator>
    <dc:date>2022-06-17T02:37:41Z</dc:date>
    <item>
      <title>how to use Inline defined materials for Cprism</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341218#M1912</link>
      <description>&lt;P&gt;Is it possible to use not materials index, but kinda its name (pre-defined materials in gdl has names, not index) basically for all shapes with prism_, tube and so on ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;define material 'purple' 2, 1, 0, 1
define material 'white' 2, 1, 1, 1



material 'purple'
mat1=10 ! black
pen 1
_si=15

block 1,1,1

add 2, 2, 0

cprism_{3} 'white' , 'white' , 'white' , 0,
5, 2,
0, 0, 0, _si, mat1,
0, 1, 0, _si, mat1,
1, 1, 0, _si, mat1,
1, 0, 0, _si, mat1,
0, 0, 0, -1, mat1



add 2, 2, 0

material 'white'
mat2=76 ! green
mat3=78 ! yellow

cprism_{3} 'purple', 'purple', 'purple', 0,
5, 2,
0, 0, 0, _si, mat3,
0, 1, 0, _si, mat3,
1, 1, 0, _si, mat3,
1, 0, 0, _si, mat3,
0, 0, 0, -1, mat3



add 2,2, 0

block 1,1,1&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54962i3D9EC216523B05F5/image-size/large?v=v2&amp;amp;px=999" border="0" alt="defineMaterial.png" title="defineMaterial.png" /&gt;</description>
      <pubDate>Fri, 17 Jun 2022 02:37:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341218#M1912</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2022-06-17T02:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Inline defined materials for Cprism</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341293#M1913</link>
      <description>&lt;P&gt;Hi A_Smith,&lt;/P&gt;
&lt;P&gt;No a numerical expression is required for mat1, mat2 and mat3 variable,&lt;/P&gt;
&lt;P&gt;but you can easily set them with the IND command :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;define material 'purple' 2, 1, 0, 1
define material 'white' 2, 1, 1, 1



mat1 = IND (MATERIAL, 'purple')

mat3 = IND (MATERIAL, 'white')


_si=15



pen 1


cprism_{3} 'white' , 'white' , 'white' , 0,
5, 2,
0, 0, 0, _si, mat1,
0, 1, 0, _si, mat1,
1, 1, 0, _si, mat1,
1, 0, 0, _si, mat1,
0, 0, 0, -1, mat1



add 2, 2, 0

cprism_{3} 'purple', 'purple', 'purple', 0,
5, 2,
0, 0, 0, _si, mat3,
0, 1, 0, _si, mat1,
1, 1, 0, _si, mat3,
1, 0, 0, _si, mat1,
0, 0, 0, -1, mat3&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Jun 2022 02:37:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341293#M1913</guid>
      <dc:creator>BrunoH</dc:creator>
      <dc:date>2022-06-17T02:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Inline defined materials for Cprism</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341301#M1914</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:03:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-Inline-defined-materials-for-Cprism/m-p/341301#M1914</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2022-06-15T07:03:05Z</dc:date>
    </item>
  </channel>
</rss>

