<?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: Resizing a parameter array in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264565#M4693</link>
    <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
I developed an object that does this for GS UK – &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=26789" target="_blank"&gt;Modular Joinery Object&lt;/A&gt; - and it's available to customers up to the latest version.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is it still there Ralph? &lt;BR /&gt;
&lt;BR /&gt;
When searching via the Door or Window tool, the object shows up. However, when clicking OK to download, it, I get the error below. For the record, my SSA is valid.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
Clicking on the &lt;A href="https://bimcomponents.com/GSM/Details/11135" target="_blank"&gt;BIMcomponents link&lt;/A&gt; in the tool dialogue box leads to a 404.&lt;BR /&gt;
&lt;BR /&gt;
I hope this is a temporary glitch. I'll have to hunt through embedded objects in some old project to retrieve it, otherwise. This one's too precious to lose.</description>
    <pubDate>Fri, 24 Jul 2020 14:16:56 GMT</pubDate>
    <dc:creator>vistasp</dc:creator>
    <dc:date>2020-07-24T14:16:56Z</dc:date>
    <item>
      <title>Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264560#M4688</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I've been trying to create a window object consisting of several 'subwindows', so that each subwindow has its own properties, which I store in a bunch of two-dimensional parameter arrays, one for each property. Each element in a parameter array represents one of the windows. To illustrate: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example for the widths, I have defined an array called _widths, so that _widths[1][1] stores the width of the window in the lower left, _widths[2][1] the one to the right of that one and so on, up to _widths[4][3] that stores the width of the window in the top right corner.&lt;BR /&gt;&lt;BR /&gt;The user is able to define the number of horizontal as well as vertical number of windows. The problem I've encountered is that my code is unable to expand the parameter arrays properly when the user sets a number larger than the previous one, e.g. 3 =&amp;gt; 4 horizontal windows. &lt;BR /&gt;&lt;BR /&gt;The code I've used is based on the answer given &lt;A href="https://Archicad-talk.Graphisoft.com/viewtopic.php?t=31936" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I've tried both creating a new array and setting the parameter array to that one using the 'parameters' command (which works for decreasing the dimensions of the parameter array), and simply defining the new elements in the parameter array (which was the recommended answer to that question), but none of these seem to work for me. Strangely enough, when editing the object in the gdl editor, the array elements are created, but the array seems to retain its dimensions: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, upon modifying another parameter (which I assume runs the parameter script again?) the dimensions of the array are updated and correctly set to the new dimensions. This of course is not possible for me to do on a placed object, as the parameter script has already crashed further down due to trying to access an out of bounds index and the interface is subsequently only empty.&lt;BR /&gt;&lt;BR /&gt;What would be the correct way to increase the dimensions of the parameter arrays? I know the simple solution for my specific problem would probably be to set a large enough dimensions to the parameter arrays and just not resize them, but that wouldn't really answer my question.&lt;BR /&gt;&lt;BR /&gt;thanks &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:48:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264560#M4688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264561#M4689</link>
      <description>I developed an object that does this for GS UK – &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=26789" target="_blank"&gt;Modular Joinery Object&lt;/A&gt; - and it's available to customers up to the latest version. Might be easier to see if you can get that rather than starting from scratch.</description>
      <pubDate>Thu, 23 Jul 2020 15:25:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264561#M4689</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-23T15:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264562#M4690</link>
      <description>Hi Ralph, I appreciate the reply! I had previously looked at the post you linked, and it seems really functional. It does not solve my problem, however, as the object I'm developing was ordered by a client and needs to have specific properties. I'm also curious about the answer to my question, i.e. how to resize a parameter array.</description>
      <pubDate>Fri, 24 Jul 2020 06:18:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264562#M4690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-24T06:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264563#M4691</link>
      <description>OK, so I've found a solution to my own problem, and I think it might be the solution for how to resize a parameter array, or at least an option.&lt;BR /&gt;
&lt;BR /&gt;
The problem for me seemed to be that, although the resizing of the parameter array worked and was 'registered' as a change, it didn't come into effect until the following time an action was taken (in the gdl editor for example regenerating the 3D view or changing the value of some other parameter). The solution I found was to modify the parameter array like a normal array and extend it, and use it like a normal variable in the parameter script, and the following time the parameter script was run the parameter array itself would be updated and thus work correctly. In code it looked more or less like this:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! the parameter array =&amp;gt; array[2][2]

! extend the array
array[3][2] = some_value

! do all calculations etc. here

! set the parameter array using parameters command
parameters array = array
&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jul 2020 09:13:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264563#M4691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-24T09:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264564#M4692</link>
      <description>Have you checked this topic: &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=30992&amp;amp;hilit=elastic&amp;amp;sid=c5532286a247966143b7b6e2c99c5979" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?f=6&amp;amp;t=30992&amp;amp;hilit=elastic ... e2c99c5979"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=30992&amp;amp;hilit=elastic&amp;amp;sid=c5532286a247966143b7b6e2c99c5979&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
Specifically the &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=30992&amp;amp;hilit=elastic&amp;amp;sid=c5532286a247966143b7b6e2c99c5979&amp;amp;start=30#p162931" target="_blank"&gt;Dynamic Array&lt;/A&gt; solution from the legendary Frank Beister.&lt;BR /&gt;
Hope this helps.</description>
      <pubDate>Fri, 24 Jul 2020 10:11:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264564#M4692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-24T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264565#M4693</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
I developed an object that does this for GS UK – &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=26789" target="_blank"&gt;Modular Joinery Object&lt;/A&gt; - and it's available to customers up to the latest version.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is it still there Ralph? &lt;BR /&gt;
&lt;BR /&gt;
When searching via the Door or Window tool, the object shows up. However, when clicking OK to download, it, I get the error below. For the record, my SSA is valid.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
Clicking on the &lt;A href="https://bimcomponents.com/GSM/Details/11135" target="_blank"&gt;BIMcomponents link&lt;/A&gt; in the tool dialogue box leads to a 404.&lt;BR /&gt;
&lt;BR /&gt;
I hope this is a temporary glitch. I'll have to hunt through embedded objects in some old project to retrieve it, otherwise. This one's too precious to lose.</description>
      <pubDate>Fri, 24 Jul 2020 14:16:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264565#M4693</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2020-07-24T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264566#M4694</link>
      <description>&lt;BLOCKQUOTE&gt;blob wrote:&lt;BR /&gt;
OK, so I've found a solution to my own problem, and I think it might be the solution for how to resize a parameter array, or at least an option.&lt;BR /&gt;
&lt;BR /&gt;
The problem for me seemed to be that, although the resizing of the parameter array worked and was 'registered' as a change, it didn't come into effect until the following time an action was taken (in the gdl editor for example regenerating the 3D view or changing the value of some other parameter). The solution I found was to modify the parameter array like a normal array and extend it, and use it like a normal variable in the parameter script, and the following time the parameter script was run the parameter array itself would be updated and thus work correctly. In code it looked more or less like this:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! the parameter array =&amp;gt; array[2][2]

! extend the array
array[3][2] = some_value

! do all calculations etc. here

! set the parameter array using parameters command
parameters array = array
&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
It can be even simpler than that - just assign a value at the array bounds you want and then make the same statement leading with parameters, e.g.:&lt;PRE&gt;something[5][5] = 1.0
parameters something[5][5] = 1.0
&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jul 2020 17:10:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264566#M4694</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-24T17:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264567#M4695</link>
      <description>&lt;BLOCKQUOTE&gt;vistasp wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
I developed an object that does this for GS UK – &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=26789" target="_blank"&gt;Modular Joinery Object&lt;/A&gt; - and it's available to customers up to the latest version.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is it still there Ralph? &lt;BR /&gt;
&lt;BR /&gt;
When searching via the Door or Window tool, the object shows up. However, when clicking OK to download, it, I get the error below. For the record, my SSA is valid.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Clipboarder.2020.07.24-002.png&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Clicking on the &lt;A href="https://bimcomponents.com/GSM/Details/11135" target="_blank"&gt;BIMcomponents link&lt;/A&gt; in the tool dialogue box leads to a 404.&lt;BR /&gt;
&lt;BR /&gt;
I hope this is a temporary glitch. I'll have to hunt through embedded objects in some old project to retrieve it, otherwise. This one's too precious to lose.
&lt;/BLOCKQUOTE&gt;
Should be - I check it every year for GS UK. It's running fine in AC24, so I expect there's some distribution problem if it's not showing up. Check with your support</description>
      <pubDate>Fri, 24 Jul 2020 17:11:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264567#M4695</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-24T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264568#M4696</link>
      <description>Turns out the glitch is not in BIMcomponents, but in the dialog box itself. The button for Download and Embed is getting (almost completely) hidden because of the extra text telling me that the object is Premium Content. It is clickable, but not very noticeable. Yesterday, I'd been directly clicking on OK, since I didn't see that little part of the button.&lt;BR /&gt;
&lt;BR /&gt;
Seems to be a v24 bug. The button shows properly in v23.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jul 2020 14:11:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264568#M4696</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2020-07-25T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264569#M4697</link>
      <description>Hi vistasp,&lt;BR /&gt;
I added the hidden button to our bug database.</description>
      <pubDate>Wed, 29 Jul 2020 06:40:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264569#M4697</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2020-07-29T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a parameter array</title>
      <link>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264570#M4698</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
Hi vistasp,&lt;BR /&gt;
I added the hidden button to our bug database.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Thanks, Peter. &lt;BR /&gt;
Cheers.</description>
      <pubDate>Wed, 29 Jul 2020 07:00:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Resizing-a-parameter-array/m-p/264570#M4698</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2020-07-29T07:00:45Z</dc:date>
    </item>
  </channel>
</rss>

