<?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: Value of a GLOB_MODPAR_NAME in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144832#M13587</link>
    <description>&lt;BLOCKQUOTE&gt;
Can't you use the parameter itself once you know which one is the last modified one?&lt;/BLOCKQUOTE&gt;
Yes, I could. But with 150 Parameters that would be a long script.&lt;BR /&gt;
It would be easier with a loop, but there the script cannot use the GLOB_MODPAR_NAME itself, because that is the name of the parameter and not its value.</description>
    <pubDate>Sun, 12 May 2013 17:24:01 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2013-05-12T17:24:01Z</dc:date>
    <item>
      <title>Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144828#M13583</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is it possible to get the value of the GLOB_MODPAR_NAME, when you do not know its name in the script?&lt;BR /&gt;
E.G.&lt;BR /&gt;
IF GLOB_MODPAR_NAME &amp;lt;&amp;gt; "" THEN&lt;BR /&gt;
name1 = GLOB_MODPAR_NAME  : PARAMETERS name = name&lt;BR /&gt;
value1 = ....&lt;BR /&gt;
ENDIF&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 May 2013 08:16:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144828#M13583</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2013-05-11T08:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144829#M13584</link>
      <description>I don't see why not. GLOB_MODPAR_NAME just returns the string value of the last modified parameter.</description>
      <pubDate>Sat, 11 May 2013 16:06:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144829#M13584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-11T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144830#M13585</link>
      <description>Matthew,&lt;BR /&gt;
the string value of the last changed parameter, its name, is no problem.&lt;BR /&gt;
But how do I get its value?&lt;BR /&gt;
E.G.  value_string = "A", but I want the numerical value of A.&lt;BR /&gt;
So I would have to write value_value = value_string without quoation marks.</description>
      <pubDate>Sat, 11 May 2013 19:30:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144830#M13585</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2013-05-11T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144831#M13586</link>
      <description>Can't you use the parameter itself once you know which one is the last modified one?</description>
      <pubDate>Sun, 12 May 2013 04:23:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144831#M13586</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2013-05-12T04:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144832#M13587</link>
      <description>&lt;BLOCKQUOTE&gt;
Can't you use the parameter itself once you know which one is the last modified one?&lt;/BLOCKQUOTE&gt;
Yes, I could. But with 150 Parameters that would be a long script.&lt;BR /&gt;
It would be easier with a loop, but there the script cannot use the GLOB_MODPAR_NAME itself, because that is the name of the parameter and not its value.</description>
      <pubDate>Sun, 12 May 2013 17:24:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144832#M13587</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2013-05-12T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Value of a GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144833#M13588</link>
      <description>I actually thought I spoke too soon, as I had to read again what you were originally asking. I did a few tests and tries, and I'm not really sure that what you are trying is possible. The gurus might know better.&lt;BR /&gt;
&lt;BR /&gt;
In essence, it might sound like it is, but in practice, I really don't know. As I understand, you are trying to get sort of a dynamic GLOB_MODPAR_NAME stored somewhere (either a parameter or variable) and use that to search your parameters and get the value, but that would mean that GDL or the global variable would be open and smart enough to know what kind of value that is (it could be a string, a real value, an angle, a boolean, etc) and that you are using the script to scan your parameters to find a match, and I don't know if that is possible.&lt;BR /&gt;
&lt;BR /&gt;
Also, like said, the returned value is a string, and AFAIK you can only compare it to other strings that either you specify or know in advance (like your parameters' names). It should be simple with a loop, but just don't know if it can work that way.&lt;BR /&gt;
&lt;BR /&gt;
Either way, my broad guess is that if you are trying to know what was the last modified parameter, it is because you need to take action according to that last parameter, and you would need some kind of comparison to do it. (IF the_last_parameter_was_this THEN take_this_action)&lt;BR /&gt;
&lt;BR /&gt;
In my 15min tries couldn't see the light.</description>
      <pubDate>Mon, 13 May 2013 03:10:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-of-a-GLOB-MODPAR-NAME/m-p/144833#M13588</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2013-05-13T03:10:22Z</dc:date>
    </item>
  </channel>
</rss>

