<?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: (Really) Dynamic arrays as parameters of GDL objects in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119630#M21227</link>
    <description>Try&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/object_depository.php" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/obj ... sitory.php"&gt;http://archicad-talk.graphisoft.com/object_depository.php&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
 &lt;B&gt;Free form Window&lt;/B&gt; in Windows category&lt;BR /&gt;
Needs time and effort to understand.</description>
    <pubDate>Wed, 05 May 2010 19:52:33 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2010-05-05T19:52:33Z</dc:date>
    <item>
      <title>(Really) Dynamic arrays as parameters of GDL objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119628#M21225</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I am trying to make objects that are swept through an user-given polygon, like railings. Since it doesn't seem to be possible to give the GDL a polygon as a parameter I gave it through an array (of points). But I can give it only a pre-limited number of points (ie. 4, or 5 or 20 points alltogether).  &lt;BR /&gt;
&lt;BR /&gt;
The GDL docs says that parameter arrays are dynamic by default, that is they can be extended, and it works. But the parametric arrays' stored size cannot be changed, and I cannot change in the parameter window.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to change the parameter array's size somehow?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:54:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119628#M21225</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2023-05-24T09:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: (Really) Dynamic arrays as parameters of GDL objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119629#M21226</link>
      <description>You definitely cannot do out of bounds indexing of array parameters &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;for reading&lt;E&gt;&lt;/E&gt; in the 2D/3D scripts.&lt;BR /&gt;
&lt;BR /&gt;
But you absolutely can do the following in the parameter script:
&lt;PRE&gt;if max (gs_sh, gs_sho, gs_shu) &amp;gt; vardim2(gs_horGridY) then
	parameters gs_horGridY[1][max (gs_sh, gs_sho, gs_shu)] = 0
	parameters gs_horGridBegX[1][max (gs_sh, gs_sho, gs_shu)] = 0
	parameters gs_horGridEndX[1][max (gs_sh, gs_sho, gs_shu)] = 0
endif&lt;/PRE&gt;

(the code snipplet is from the standard German AC windows)&lt;BR /&gt;
&lt;BR /&gt;
In other words: you can extend your array parameters by simply setting the last item to create.&lt;BR /&gt;
&lt;BR /&gt;
Decreasing the size of the array (which is a much rarer need) can be done by creating a new smaller array, copying the necessary values and setting the array parameter to the new array using the PARAMETERS command.</description>
      <pubDate>Fri, 09 Apr 2010 14:43:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119629#M21226</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2010-04-09T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: (Really) Dynamic arrays as parameters of GDL objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119630#M21227</link>
      <description>Try&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/object_depository.php" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/obj ... sitory.php"&gt;http://archicad-talk.graphisoft.com/object_depository.php&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
 &lt;B&gt;Free form Window&lt;/B&gt; in Windows category&lt;BR /&gt;
Needs time and effort to understand.</description>
      <pubDate>Wed, 05 May 2010 19:52:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Really-Dynamic-arrays-as-parameters-of-GDL-objects/m-p/119630#M21227</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2010-05-05T19:52:33Z</dc:date>
    </item>
  </channel>
</rss>

