<?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: Use array as arguments for GDL shapes (PRISM_ , PYRAMID, etc...) in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358292#M1357</link>
    <description>&lt;P&gt;I just found something called The parameter buffer which looks like it does what i want:&amp;nbsp;&lt;A href="https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation" target="_blank"&gt;https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 00:27:52 GMT</pubDate>
    <dc:creator>BenjiDev</dc:creator>
    <dc:date>2022-10-10T00:27:52Z</dc:date>
    <item>
      <title>Use array as arguments for GDL shapes (PRISM_ , PYRAMID, etc...)</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358291#M1356</link>
      <description>&lt;P&gt;How do you use and array as an argument for the different shape functions?&lt;/P&gt;
&lt;P&gt;A simple example:&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="markup"&gt;! DO THIS:

DIM arr[]
arr[1]=1
arr[2]=1
arr[3]=15
arr[4]=2
arr[5]=0
arr[6]=15
arr[7]=1
arr[8]=3
arr[9]=15

PRISM_ 4,1,
    0,0,15,
	arr

! INSTEAD OF THIS:

PRISM_ 4,1,
    0,0,15,
    1,1,15,
    2,0,15,
    1,3,15&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;The array in question is comming from a C++ Addon and is arbitrarily large so i cannot "spell" out the arguments when calling the GDL functions. Or is there some kind of workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm reading the GDL reference guide but haven't found an example of this yet: &lt;A href="https://gdl.Graphisoft.com/reference-guide" target="_blank" rel="noopener"&gt;https://gdl.Graphisoft.com/reference-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:16:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358291#M1356</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2024-09-24T08:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use array as arguments for GDL shapes (PRISM_ , PYRAMID, etc...)</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358292#M1357</link>
      <description>&lt;P&gt;I just found something called The parameter buffer which looks like it does what i want:&amp;nbsp;&lt;A href="https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation" target="_blank"&gt;https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 00:27:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358292#M1357</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2022-10-10T00:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use array as arguments for GDL shapes (PRISM_ , PYRAMID, etc...)</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358312#M1358</link>
      <description>&lt;P&gt;Hi Benji,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are looking for the Parameter Buffer:&lt;BR /&gt;&lt;A href="https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation" target="_blank"&gt;https://gdl.Graphisoft.com/reference-guide/parameter-buffer-manipulation&lt;/A&gt;&lt;BR /&gt;There are examples for use at the bottom of the page.&lt;BR /&gt;The main idea is, that one uses `put` to store values on the buffer and `use` or `get` to retrieve them again. It's a data structure with FIFO principle.&lt;BR /&gt;&lt;BR /&gt;Best, Bernd&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 06:44:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358312#M1358</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-10-10T06:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use array as arguments for GDL shapes (PRISM_ , PYRAMID, etc...)</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358394#M1359</link>
      <description>&lt;P&gt;This can be written in a for loop as well based on points to simplify or shorten the amount of code.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 04:38:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-array-as-arguments-for-GDL-shapes-PRISM-PYRAMID-etc/m-p/358394#M1359</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2022-10-11T04:38:42Z</dc:date>
    </item>
  </channel>
</rss>

