<?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: How to change the GSHandle array/selection parameter in value of a GDL object? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/384102#M893</link>
    <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;This is excactly what I did, go to the GDL code and find the selection parameter and then change it the same way as the&amp;nbsp;numerical parameters.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jun 2023 10:33:43 GMT</pubDate>
    <dc:creator>4livesdragon</dc:creator>
    <dc:date>2023-06-17T10:33:43Z</dc:date>
    <item>
      <title>How to change the GSHandle array/selection parameter in value of a GDL object?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/383102#M891</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just getting started with Archicad API development.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to change the GSHandle array parameter in a value of a GDL object.&lt;/P&gt;
&lt;P&gt;I have already used code like&amp;nbsp;&lt;STRONG&gt;(*memo.params)[param_index].value.real&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;= 5&lt;/STRONG&gt; to change the&amp;nbsp;numerical parameters&lt;/P&gt;
&lt;P&gt;and used code like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GS::UniString teststr = Object_Name;&lt;BR /&gt;GS::ucscpy((*memo.params)[param_index].value.uStr, teststr.ToUStr());&lt;/P&gt;
&lt;P&gt;to change the string parameters.&lt;/P&gt;
&lt;P&gt;Now, I want to change the selection parameter. For example, for this parameter, this object has two choice "yes" and "no", I want to change it to "yes", how can I do this?&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:57:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/383102#M891</guid>
      <dc:creator>4livesdragon</dc:creator>
      <dc:date>2023-06-12T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the GSHandle array/selection parameter in value of a GDL object?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/384015#M892</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Often such choices parameters are implemented in GDL via two different arrays.&lt;BR /&gt;One for the textual descriptions of the options and one with numerical representations (think enums in C++).&lt;/P&gt;
&lt;P&gt;Do you have access to the GDL code of the object? If you find the &lt;A href="https://gdl.graphisoft.com/reference-guide/the-parameter-script#:~:text=value%3A%20step%20value.-,values%7B2%7D,-VALUES%7B2%7D%20%22parameter" target="_self"&gt;VALUES{2}&amp;nbsp; &lt;/A&gt;keyword for the selection parameters, then this would suggest that the choice is implemented as I've described.&lt;BR /&gt;&lt;BR /&gt;So my approach would be to change the underlying numerical representation and then to make sure that the parameter script is run.&lt;BR /&gt;I didn't need it for a while so I'm not sure about the details but I think&amp;nbsp;&lt;A href="https://archicadapi.graphisoft.com/documentation/apiany_openparametersid" target="_self"&gt;APIAny_​OpenParametersID&lt;/A&gt; and the related functions would take care of that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:22:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/384015#M892</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-06-16T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the GSHandle array/selection parameter in value of a GDL object?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/384102#M893</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;This is excactly what I did, go to the GDL code and find the selection parameter and then change it the same way as the&amp;nbsp;numerical parameters.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 10:33:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-the-GSHandle-array-selection-parameter-in-value-of/m-p/384102#M893</guid>
      <dc:creator>4livesdragon</dc:creator>
      <dc:date>2023-06-17T10:33:43Z</dc:date>
    </item>
  </channel>
</rss>

