<?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: UI_CUSTOM_POPUP_INFIELD in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/319561#M4450</link>
    <description>&lt;P&gt;Hi Zsuzsanna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is so great, thank you for helping me progress this through, really appreciated!!!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 14:04:12 GMT</pubDate>
    <dc:creator>GDL Enthusiast</dc:creator>
    <dc:date>2021-11-03T14:04:12Z</dc:date>
    <item>
      <title>UI_CUSTOM_POPUP_INFIELD</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/312969#M4448</link>
      <description>&lt;P&gt;Hi GDL experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been reading about&amp;nbsp;UI_CUSTOM_POPUP_INFIELD. I can get it to work in the Interface, however I am wondering how I can feed the result back to a parameter. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;Interface Script:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;UI_CUSTOM_POPUP_INFIELD "MyParameter", 15, 70, 180, 20,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;1, 2, 2, "", ! storeHiddenId, treeDepth, groupingMethod, selectedValDescription&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;"hiddenID1", "type1", "group1", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;"hiddenID2", "type1", "group1", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;"hiddenID3", "type1", "group1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then if I create a parameter called "&lt;FONT size="2" color="#0000FF"&gt;MyParameter&lt;/FONT&gt;" (Type: &lt;FONT color="#0000FF"&gt;Abc&lt;/FONT&gt;), can I then reference the parameter with an IF statement in the Master Script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;Master Script:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;IF MyParameter=hiddenID1 THEN &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;Text2 0,0, "Type 1, Group 1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#0000FF"&gt;ENDIF&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment the above doesn't seem to work. I would welcome any help, thank you so much in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:21:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/312969#M4448</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-09T09:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: UI_CUSTOM_POPUP_INFIELD</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/319506#M4449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the master script when referencing string type parameters, you have to use “ “ as well. The other issue here is in the interface script, the array you have defined contains duplicates, all of the entries are the same “type1”, “group1”, you have to have a different combination for all the hiddenIDs in order for your array to work. Your working code should look like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;UI_CUSTOM_POPUP_INFIELD "MyParameter", 15, 70, 180, 20,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1, 2, 2, "", ! storeHiddenId, treeDepth, groupingMethod, selectedValDescription&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"hiddenID1", "type1", "group1",&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"hiddenID2", "type1", "group2",&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"hiddenID3", "type1", "group3"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Master script:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;IF MyParameter = "hiddenID1" THEN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Text2 0,0, "Type 1, Group 1"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ENDIF&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:50:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/319506#M4449</guid>
      <dc:creator>Zsuzsanna Bori</dc:creator>
      <dc:date>2021-11-03T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: UI_CUSTOM_POPUP_INFIELD</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/319561#M4450</link>
      <description>&lt;P&gt;Hi Zsuzsanna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is so great, thank you for helping me progress this through, really appreciated!!!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 14:04:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/UI-CUSTOM-POPUP-INFIELD/m-p/319561#M4450</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-11-03T14:04:12Z</dc:date>
    </item>
  </channel>
</rss>

