<?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: dim[10][10] or 100 parameters ? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644313#M7271</link>
    <description>&lt;P&gt;Barry Kelly, Lingwisyer, Peter Baksa thank you for your interest.&lt;/P&gt;
&lt;P&gt;My reflection in this topic basically concerns LIBRARYGLOBAL, and to some extent refers to what Mario Sacco wrote recently:&lt;BR /&gt;&lt;A href="https://community.graphisoft.com/t5/GDL/Ask-a-MVO-setting-more-parameters-with-a-single-command/m-p/643556#M7253" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/GDL/Ask-a-MVO-setting-more-parameters-with-a-single-command/m-p/643556#M7253&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Taking over individual MVO parameters&lt;BR /&gt;(here the parameters can have DIFFERENT types of INT/REAL/STR/BOOLEAN...), simple example:&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;x = LIBRARYGLOBAL (mvo_macro_gsm, "mat11", mat11)
...
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat25", mat25)
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat26", mat26)
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat27", mat27)
...
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat1010", mat1010)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Taking over an array from MVO&lt;BR /&gt;(of course the array must have a SPECIFIED content type of INT/REAL/STR/BOOLEAN...), simple example:&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 dimmat[10][10]
x = LIBRARYGLOBAL (mvo_macro_gsm, "dimmat", dimmat)

mat11=dimmat[1][1]
...
mat25=dimmat[2][5]
mat26=dimmat[2][6]
mat26=dimmat[2][7]
...
mat1010=dimmat[10][10]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that for a small number of parameters, method 1 is OK. For a larger number of parameters, method 2 may be better, but requires more discipline, e.g. in terms of parameter types and the structure of row and column numbers to take the appropriate parameter values from the array.&lt;BR /&gt;Since LIBRARYGLOBAL was released, I've been creating a lot of objects using MVOs. Unfortunately, this causes the number of tabs in the MVO to grow and they don't fit on the screen. So my long-term strategy is to use my own MVO container that combines sub-MVO settings. This causes the container to contain a lot of parameters (around 650 so there is still a supply of up to 1000...). So I'm increasingly creating some sub-MVOs using arrays instead of standalone parameters. Arrays, while somewhat limited, allow for easier scaling of data with new ideas. &lt;BR /&gt;Currently, MVOs are the only way to globally change some finishes on objects, because the graphic replacement rules are completely inadequate for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wdmvo.png" style="width: 720px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/81233i39904FFA7237C25E/image-dimensions/720x494?v=v2" width="720" height="494" role="button" title="wdmvo.png" alt="wdmvo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 28 Dec 2024 18:36:12 GMT</pubDate>
    <dc:creator>gaba</dc:creator>
    <dc:date>2024-12-28T18:36:12Z</dc:date>
    <item>
      <title>dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644237#M7258</link>
      <description>&lt;P&gt;A quick technical question &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;What is more efficient on the stack/memory side of GDL:&lt;BR /&gt;- a 10x10 array (i.e. 100 cells)&lt;BR /&gt;- or 100 parameters&lt;BR /&gt;?&lt;BR /&gt;I'm not asking about the convenience of use in a script.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 16:15:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644237#M7258</guid>
      <dc:creator>gaba</dc:creator>
      <dc:date>2024-12-19T16:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644270#M7267</link>
      <description>&lt;P&gt;I am sure that has&amp;nbsp; been asked here a long time ago, or maybe it was another forum.&lt;/P&gt;
&lt;P&gt;If I find it i will let you know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have a technical answer for you, but I don't think you will notice much difference.&lt;/P&gt;
&lt;P&gt;There is a physical limit to the number of parameters an object can have, I believe it is 1064?&lt;/P&gt;
&lt;P&gt;Some of the doors and windows are approaching that limit from what I have read here before.&lt;/P&gt;
&lt;P&gt;So if you can use an array then that is probably better in that it will free up possible parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But speed/memory wise, I don't think you will notice a difference.&lt;/P&gt;
&lt;P&gt;I guess the only way to find out for sure would be to try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 00:14:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644270#M7267</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-12-20T00:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644271#M7268</link>
      <description>&lt;P&gt;I did find this one post...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.graphisoft.com/t5/Libraries-objects/Passing-parameters-to-macros-and-effectivity/m-p/181122/highlight/true#M21497" target="_blank"&gt;https://community.graphisoft.com/t5/Libraries-objects/Passing-parameters-to-macros-and-effectivity/m-p/181122/highlight/true#M21497&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 00:17:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644271#M7268</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-12-20T00:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644276#M7269</link>
      <description>&lt;P&gt;Sounds like a question for &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14532"&gt;@Peter Baksa&lt;/a&gt;&amp;nbsp;.From the code execution side, I would have figured that an array would have been more efficient, on the scale of milliseconds, given the number of statements requiring processing, though I guess it depends on how you are querying, and how efficient the language is itself. It's no C++...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 01:41:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644276#M7269</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2024-12-20T01:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644289#M7270</link>
      <description>&lt;P&gt;On memory side an array takes less space, because each parameter has its own name and description, an array only one. Using different parameters, the script itself is longer too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 08:04:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644289#M7270</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-12-20T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: dim[10][10] or 100 parameters ?</title>
      <link>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644313#M7271</link>
      <description>&lt;P&gt;Barry Kelly, Lingwisyer, Peter Baksa thank you for your interest.&lt;/P&gt;
&lt;P&gt;My reflection in this topic basically concerns LIBRARYGLOBAL, and to some extent refers to what Mario Sacco wrote recently:&lt;BR /&gt;&lt;A href="https://community.graphisoft.com/t5/GDL/Ask-a-MVO-setting-more-parameters-with-a-single-command/m-p/643556#M7253" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/GDL/Ask-a-MVO-setting-more-parameters-with-a-single-command/m-p/643556#M7253&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Taking over individual MVO parameters&lt;BR /&gt;(here the parameters can have DIFFERENT types of INT/REAL/STR/BOOLEAN...), simple example:&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;x = LIBRARYGLOBAL (mvo_macro_gsm, "mat11", mat11)
...
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat25", mat25)
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat26", mat26)
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat27", mat27)
...
x = LIBRARYGLOBAL (mvo_macro_gsm, "mat1010", mat1010)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Taking over an array from MVO&lt;BR /&gt;(of course the array must have a SPECIFIED content type of INT/REAL/STR/BOOLEAN...), simple example:&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 dimmat[10][10]
x = LIBRARYGLOBAL (mvo_macro_gsm, "dimmat", dimmat)

mat11=dimmat[1][1]
...
mat25=dimmat[2][5]
mat26=dimmat[2][6]
mat26=dimmat[2][7]
...
mat1010=dimmat[10][10]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that for a small number of parameters, method 1 is OK. For a larger number of parameters, method 2 may be better, but requires more discipline, e.g. in terms of parameter types and the structure of row and column numbers to take the appropriate parameter values from the array.&lt;BR /&gt;Since LIBRARYGLOBAL was released, I've been creating a lot of objects using MVOs. Unfortunately, this causes the number of tabs in the MVO to grow and they don't fit on the screen. So my long-term strategy is to use my own MVO container that combines sub-MVO settings. This causes the container to contain a lot of parameters (around 650 so there is still a supply of up to 1000...). So I'm increasingly creating some sub-MVOs using arrays instead of standalone parameters. Arrays, while somewhat limited, allow for easier scaling of data with new ideas. &lt;BR /&gt;Currently, MVOs are the only way to globally change some finishes on objects, because the graphic replacement rules are completely inadequate for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wdmvo.png" style="width: 720px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/81233i39904FFA7237C25E/image-dimensions/720x494?v=v2" width="720" height="494" role="button" title="wdmvo.png" alt="wdmvo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2024 18:36:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/dim-10-10-or-100-parameters/m-p/644313#M7271</guid>
      <dc:creator>gaba</dc:creator>
      <dc:date>2024-12-28T18:36:12Z</dc:date>
    </item>
  </channel>
</rss>

