<?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: GDL: Refresh Array Width on Code Modification in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374421#M1017</link>
    <description>&lt;P&gt;You can always select all respective objects and then "Reset to Default Settings". This fixes it.&lt;/P&gt;
&lt;P&gt;Obviously now everything else is reset, too.&lt;/P&gt;
&lt;P&gt;Other thing would be to write a migration script which would preserve all other settings, but writing those is tedious.&lt;/P&gt;
&lt;P&gt;So, its "pick your poison".&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 09:10:27 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2023-03-27T09:10:27Z</dc:date>
    <item>
      <title>GDL: Refresh Array Width on Code Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374372#M1016</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you change the width of an array parameter, this change is not passed onto existing objects resulting in them failing to generate as they return an &lt;EM&gt;"invalid array width"&lt;/EM&gt; error. Is there a way to get around this without having to delete all of the relevant parameters, reload all the objects, then recreate the parameters with their new array widths?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 01:43:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374372#M1016</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-03-27T01:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: Refresh Array Width on Code Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374421#M1017</link>
      <description>&lt;P&gt;You can always select all respective objects and then "Reset to Default Settings". This fixes it.&lt;/P&gt;
&lt;P&gt;Obviously now everything else is reset, too.&lt;/P&gt;
&lt;P&gt;Other thing would be to write a migration script which would preserve all other settings, but writing those is tedious.&lt;/P&gt;
&lt;P&gt;So, its "pick your poison".&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 09:10:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374421#M1017</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-03-27T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: Refresh Array Width on Code Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374446#M1018</link>
      <description>&lt;P&gt;I use 2 different approaches:&lt;BR /&gt;a) If the array-size is not dynamically, I write e.g.:&lt;/P&gt;
&lt;P&gt;IF VARDIM1(array) &amp;lt; yx THEN&lt;/P&gt;
&lt;P&gt;FOR i = VARDIM1(array) TO no_array&lt;BR /&gt;PARAMETERS array[i] = "..."&lt;BR /&gt;NEXT i&lt;BR /&gt;b) If the array size&amp;nbsp; is dynamically I add an update checkbox&lt;/P&gt;
&lt;P&gt;and let the Parameter-Script run once with GLOB_MODPAR_NAME.&lt;BR /&gt;After this the update checkbox disappears.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 13:37:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374446#M1018</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-03-27T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: Refresh Array Width on Code Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374451#M1019</link>
      <description>&lt;P&gt;I wish there was greater clarity on Array definitions and how they react in certain situations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Forward Migration script suggested by &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/640"&gt;@runxel&lt;/a&gt;&amp;nbsp;maybe the best option, that way you can keep your existing object in working order. My understanding of the Migration Script is the default is to populate the new parameters with the old parameters as long as they are still present. You don't need to list and action them all. The only one you would need to process would be the array, unless you have other array related values. You could try creating a new Parameter Array and migrate the values with For - Next loops. The following read values from a redundant one dimension array and added the values to a new two dimension array.&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;    DIM arrTemp1[]
    xx = DELETED_PAR_VALUE ("arrDimx1",	arrTemp1)
    FOR n = 1 TO VARDIM1(arrTemp1)
	arrDimx2[n][8] = arrTemp1[n]
    NEXT n

    PARAMETERS arrDimx2 = arrDimx2
&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;</description>
      <pubDate>Mon, 27 Mar 2023 15:47:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Refresh-Array-Width-on-Code-Modification/m-p/374451#M1019</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-27T15:47:30Z</dc:date>
    </item>
  </channel>
</rss>

