<?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: Is it possible to use &amp;quot;GET&amp;quot; in SPRISM with numeric and alfanumeric values? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586534#M6263</link>
    <description>&lt;P&gt;Try this.&lt;/P&gt;
&lt;P&gt;I found out that if You put&amp;nbsp;&amp;nbsp;mat_1,mat_1, mat_2, mask, n ... it does not work. There should be at least 2 material definition for some reason.&lt;/P&gt;
&lt;P&gt;!Inline material definitions&lt;BR /&gt;colorname="color_1"&lt;BR /&gt;define material colorname 2,.5,.5,.1&lt;BR /&gt;colorname="color_2"&lt;BR /&gt;define material colorname 2,.1,.5,.1&lt;BR /&gt;colorname="color_3"&lt;BR /&gt;define material colorname 2,.1,.5,.6&lt;BR /&gt;colorname="color_4"&lt;BR /&gt;define material colorname 2,.6,.1,.6&lt;BR /&gt;colorname="color_5"&lt;BR /&gt;define material colorname 2,.6,.1,.1&lt;/P&gt;
&lt;P&gt;mat_1=IND (MATERIAL, "color_1")&lt;BR /&gt;mat_2=IND (MATERIAL, "color_2")&lt;BR /&gt;mat_3=IND (MATERIAL, "color_3")&lt;BR /&gt;mat_4=IND (MATERIAL, "color_4")&lt;BR /&gt;mat_5=IND (MATERIAL, "color_5")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;j1=1!: top edge in line elimination.&lt;BR /&gt;j2=1!: bottom edge in line elimination.&lt;BR /&gt;j3=1!: side edge in line elimination.&lt;BR /&gt;mask = j1 + 2*j2 + 4*j3 + 8*j4&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;put 0, 0, 1, 0, 1, 0,&lt;BR /&gt;0, 0, 1, 0, 0, 0,&lt;BR /&gt;0, 0, 15, mat_1,&lt;BR /&gt;1, 0, 15, mat_2,&lt;BR /&gt;1, 1, 15, mat_3,&lt;BR /&gt;0, 1, 15, mat_4,&lt;BR /&gt;0, 0, -1, mat_5&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SPRISM_{4} mat_1,mat_1, mat_2, mask, (nsp-12)*.25, get(nsp)&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2024 14:45:11 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2024-02-04T14:45:11Z</dc:date>
    <item>
      <title>Is it possible to use "GET" in SPRISM with numeric and alfanumeric values?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586525#M6262</link>
      <description>&lt;P&gt;I have complex polygons managed as data using PUT.&lt;/P&gt;
&lt;P&gt;In SPRISM we have multiple variables type: numeric and alfanumeric (material).&lt;/P&gt;
&lt;P&gt;I need alfanumeric material due to the fact the Material (surface) is created in GDL and we can't extract an ID from a Material created in GDL using "IND (MATERIAL, name_string)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PUT doesn't manage alfanumeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to insert multiple data (numeric and alfanumeric) in FPRISM with only one command such us "GET"?&lt;/P&gt;
&lt;P&gt;I tried also to understand if "DICT" could work; but it seams it can't be used in SPRISM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;SPRISM_{4} top_material, bottom_material, side_material, mask,
 n,
 xtb, ytb, xte, yte, topz, tangle,
 xbb, ybb, xbe, ybe, bottomz, bangle,
 x1, y1, s1, mat1,
 ...
 xn, yn, sn, matn

!-------Example with "GET" but it doesn't work----
SPRISM_{4} top_material, bottom_material, side_material, mask,
 n,
 xtb, ytb, xte, yte, topz, tangle,
 xbb, ybb, xbe, ybe, bottomz, bangle,
GET(NSP)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:22:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586525#M6262</guid>
      <dc:creator>Mario Sacco</dc:creator>
      <dc:date>2024-09-26T11:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use "GET" in SPRISM with numeric and alfanumeric values?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586534#M6263</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;
&lt;P&gt;I found out that if You put&amp;nbsp;&amp;nbsp;mat_1,mat_1, mat_2, mask, n ... it does not work. There should be at least 2 material definition for some reason.&lt;/P&gt;
&lt;P&gt;!Inline material definitions&lt;BR /&gt;colorname="color_1"&lt;BR /&gt;define material colorname 2,.5,.5,.1&lt;BR /&gt;colorname="color_2"&lt;BR /&gt;define material colorname 2,.1,.5,.1&lt;BR /&gt;colorname="color_3"&lt;BR /&gt;define material colorname 2,.1,.5,.6&lt;BR /&gt;colorname="color_4"&lt;BR /&gt;define material colorname 2,.6,.1,.6&lt;BR /&gt;colorname="color_5"&lt;BR /&gt;define material colorname 2,.6,.1,.1&lt;/P&gt;
&lt;P&gt;mat_1=IND (MATERIAL, "color_1")&lt;BR /&gt;mat_2=IND (MATERIAL, "color_2")&lt;BR /&gt;mat_3=IND (MATERIAL, "color_3")&lt;BR /&gt;mat_4=IND (MATERIAL, "color_4")&lt;BR /&gt;mat_5=IND (MATERIAL, "color_5")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;j1=1!: top edge in line elimination.&lt;BR /&gt;j2=1!: bottom edge in line elimination.&lt;BR /&gt;j3=1!: side edge in line elimination.&lt;BR /&gt;mask = j1 + 2*j2 + 4*j3 + 8*j4&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;put 0, 0, 1, 0, 1, 0,&lt;BR /&gt;0, 0, 1, 0, 0, 0,&lt;BR /&gt;0, 0, 15, mat_1,&lt;BR /&gt;1, 0, 15, mat_2,&lt;BR /&gt;1, 1, 15, mat_3,&lt;BR /&gt;0, 1, 15, mat_4,&lt;BR /&gt;0, 0, -1, mat_5&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SPRISM_{4} mat_1,mat_1, mat_2, mask, (nsp-12)*.25, get(nsp)&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 14:45:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586534#M6263</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2024-02-04T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use "GET" in SPRISM with numeric and alfanumeric values?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586535#M6264</link>
      <description>&lt;P&gt;Fantastic, it works fine.&lt;/P&gt;
&lt;P&gt;I thought the negative value was an indication of error; instead it is a real ID of the internal Material.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14606"&gt;@Pertti Paasky&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I solved many problems and I will have a large amount of flexibility for future codes!!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 15:26:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-it-possible-to-use-quot-GET-quot-in-SPRISM-with-numeric-and/m-p/586535#M6264</guid>
      <dc:creator>Mario Sacco</dc:creator>
      <dc:date>2024-02-04T15:26:50Z</dc:date>
    </item>
  </channel>
</rss>

