<?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 Multiple choices in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241507#M1127</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
The confinement will have been right for my laziness to play with the GDL&lt;BR /&gt;
As often read here : trying is getting hooked ! I confirm.&lt;BR /&gt;
&lt;BR /&gt;
My level is actually very modest and my question also follows.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
I want to define "multiple choice" parameters for all the types of variables illustrated below via the interface overview:&lt;BR /&gt;
&lt;IMG src="https://i.ibb.co/T2gFX8K/Capture-d-e-cran-2020-05-01-a-08-27-07.jpg" /&gt;&lt;BR /&gt;
For example constrain to 4 predefined angles, 6 materials, 12 text variables etc ...&lt;BR /&gt;
I looked at the matrix side via the forums and the GDL guide, what I could read seems elusive.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
How do you do it?&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 01 May 2020 06:35:33 GMT</pubDate>
    <dc:creator>Christophe Fortineau</dc:creator>
    <dc:date>2020-05-01T06:35:33Z</dc:date>
    <item>
      <title>Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241507#M1127</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
The confinement will have been right for my laziness to play with the GDL&lt;BR /&gt;
As often read here : trying is getting hooked ! I confirm.&lt;BR /&gt;
&lt;BR /&gt;
My level is actually very modest and my question also follows.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
I want to define "multiple choice" parameters for all the types of variables illustrated below via the interface overview:&lt;BR /&gt;
&lt;IMG src="https://i.ibb.co/T2gFX8K/Capture-d-e-cran-2020-05-01-a-08-27-07.jpg" /&gt;&lt;BR /&gt;
For example constrain to 4 predefined angles, 6 materials, 12 text variables etc ...&lt;BR /&gt;
I looked at the matrix side via the forums and the GDL guide, what I could read seems elusive.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
How do you do it?&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 May 2020 06:35:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241507#M1127</guid>
      <dc:creator>Christophe Fortineau</dc:creator>
      <dc:date>2020-05-01T06:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241508#M1128</link>
      <description>Just turn them all into IF - THEN statements linked to a VALUES list? Doubles those variables as now you have a text version, but it works. I am lost when it comes to matrices in GDL too...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Fri, 01 May 2020 07:55:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241508#M1128</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-05-01T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241509#M1129</link>
      <description>If you want to limit any parameters to certain predefined values, you need to do that in the &lt;A href="https://gdl.graphisoft.com/reference-guide/the-parameter-script" target="_blank"&gt;parameter script&lt;/A&gt;.</description>
      <pubDate>Fri, 01 May 2020 08:47:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241509#M1129</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2020-05-01T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241510#M1130</link>
      <description>Thanks vistasp and Lingwisyer,&lt;BR /&gt;
&lt;BR /&gt;
I've read and already know I have to use "values" but the question is how and where ?&lt;BR /&gt;
I'm a little beginner and I've already tried to use matrix and values without success.&lt;BR /&gt;
When I read again your link vistasp I do not understand where to put "values" command and what does this script means :
&lt;PRE&gt;VALUES "parameter_name" [,]value_definition1 [, value_definition2, ...] &lt;/PRE&gt;

I've created only one "varx" into parameters and put this script into 3D script
&lt;PRE&gt;VALUES "varx" 1, 2, 3
BLOCK varx, B, ZZYZX&lt;/PRE&gt;

You can see I'm trying do use values command to create multiple choice... Whithout success  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 01 May 2020 12:28:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241510#M1130</guid>
      <dc:creator>Christophe Fortineau</dc:creator>
      <dc:date>2020-05-01T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241511#M1131</link>
      <description>I've found. I have to put this script into "main" and not into "3D script" :
&lt;PRE&gt;VALUES "varx" 1, 2, 3&lt;/PRE&gt;

Thanks about your participation</description>
      <pubDate>Fri, 01 May 2020 12:41:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241511#M1131</guid>
      <dc:creator>Christophe Fortineau</dc:creator>
      <dc:date>2020-05-01T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241512#M1132</link>
      <description>I don't know what it's called in the French version, but in the INT version, it's called "Parameter Script". That's where you would place all the value constraints.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 May 2020 12:51:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241512#M1132</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2020-05-01T12:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241513#M1133</link>
      <description>Christophe, the Master Script is executed when any other script is executed. So, for example, when the 3D is generated, the Master Script is executed, then the 3D Script is executed. This is the reason why putting those Values commands worked for you by putting them into the Master Script, because the Master Script also runs first when the Parameter Script is executed.&lt;BR /&gt;
&lt;BR /&gt;
But the proper place for Values commands is actually the Parameter Script, just as vistasp said.&lt;BR /&gt;
Normally, you should put those things into the Master Script which you want to execute for multiple other scripts. If certain commands (such as the VALUES command) are relevant to only one Script, then it is better to place them into that Script and not into the Master Script.</description>
      <pubDate>Fri, 01 May 2020 15:17:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241513#M1133</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2020-05-01T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple choices</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241514#M1134</link>
      <description>Thanks a lot LaszloNagy about these precious informations.&lt;BR /&gt;
One french little forum gave me the same result.&lt;BR /&gt;
It's not quite easy to begin with GDL but I'm already sure it is just the beginning for me.&lt;BR /&gt;
&lt;BR /&gt;
Have a great day,&lt;BR /&gt;
&lt;BR /&gt;
Christophe Fortineau</description>
      <pubDate>Fri, 01 May 2020 18:51:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Multiple-choices/m-p/241514#M1134</guid>
      <dc:creator>Christophe Fortineau</dc:creator>
      <dc:date>2020-05-01T18:51:30Z</dc:date>
    </item>
  </channel>
</rss>

