<?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: Suggestion to Improve GLOB_MODPAR_NAME in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268315#M1888</link>
    <description>@barry kelly&lt;BR /&gt;
&lt;BR /&gt;
I understand your point of view, but from my perspective what I'm trying to say in psuedo code is this:&lt;BR /&gt;
&lt;BR /&gt;
if any parameter under a certain title parameter have changed --&amp;gt; then change those parameters.&lt;BR /&gt;
&lt;BR /&gt;
that's why I was suggesting a new version of GLOD_MODPAR_NAME, because that way, you may rearrange parameters under certain titles, and it would be easier even to create circular values.</description>
    <pubDate>Fri, 01 Nov 2019 11:01:57 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-11-01T11:01:57Z</dc:date>
    <item>
      <title>Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268308#M1881</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there,&lt;BR /&gt;
&lt;BR /&gt;
GLOB_MODPAR_NAME is a GDL function that permits the scriptor to update the values of certain parameters if certain conditions are met in the parameters script.&lt;BR /&gt;
&lt;BR /&gt;
example: &lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "paramName" then
*** do something ***
endif&lt;/PRE&gt;

it's strength relies in its ability to create a circular condition between parameters,  but it could become tedious task for the scriptor to use this functions repeatedly a big number of parameters.&lt;BR /&gt;
&lt;BR /&gt;
Therefore, I propose the following&lt;BR /&gt;
That if GLOB_MODPAR_NAME is referencing a parameter title (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;in Parameters tab&lt;E&gt;&lt;/E&gt;), then the condition is applied to all parameters that are under the parameter Title&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Oct 2019 15:52:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268308#M1881</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-10-30T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268309#M1882</link>
      <description>But a title is not a parameter that a user can edit.&lt;BR /&gt;
&lt;BR /&gt;
Besides, if under a title (and you would have to link the following parameters other wise it is just a title on its own), what happens when you have boolean, text, length an other parameter types.&lt;BR /&gt;
Your "do something" won't be able to affect all of them in the same way.&lt;BR /&gt;
&lt;BR /&gt;
So your suggestion would only be able to work if all parameters grouped to your title were of the same type.&lt;BR /&gt;
And even then would you really want to do the same "something" to them all - I can't think of an example where it would be handy.&lt;BR /&gt;
&lt;BR /&gt;
I would say it is much easier and clearer to just tell each parameter what to do.&lt;BR /&gt;
&lt;BR /&gt;
If you have a more specific example, then maybe I could understand it better.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 31 Oct 2019 01:18:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268309#M1882</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-10-31T01:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268310#M1883</link>
      <description>I would not mind having a "vice versa" sub-function to use with this that would inverse the operation. Rather than essentially duplicating the lines. Edit A, B &amp;amp; C change. Edit B, A &amp;amp; C change. etc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Thu, 31 Oct 2019 01:34:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268310#M1883</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-10-31T01:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268311#M1884</link>
      <description>@Barry Kelly&lt;BR /&gt;
&lt;BR /&gt;
The idea is that if "GLOB_MODPAR_NAME" have detected a change in any parameter value under the title, you would specifiy what parameters should be changed. So basically you have made the code less verbose.&lt;BR /&gt;
&lt;BR /&gt;
@Lingwisyer&lt;BR /&gt;
&lt;BR /&gt;
I have found a method (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;based by mixing ideas that are already found on various locations including here&lt;E&gt;&lt;/E&gt;) that may work for your requirements in your case and quiet easy to implement. so if you like, we may arrange an online meeting were I will show you my trick and you will show me yours.&lt;BR /&gt;
&lt;BR /&gt;
For both,&lt;BR /&gt;
&lt;BR /&gt;
 Although what I have just said to @Lingwisyer may seem as a contradiction to my suggestion, but I have seen cases were objects that are linked to an ARchiCAD, need a lot of changes, but at the same time needed to conserve some of the old parameters, so that the office template wouldn't break.</description>
      <pubDate>Thu, 31 Oct 2019 12:08:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268311#M1884</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-10-31T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268312#M1885</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;
@Barry Kelly&lt;BR /&gt;
&lt;BR /&gt;
The idea is that if "GLOB_MODPAR_NAME" have detected a change in any parameter value under the title, you would specifiy what parameters should be changed. So basically you have made the code less verbose.
&lt;/BLOCKQUOTE&gt;

I am still not seeing the benefit here.&lt;BR /&gt;
In your first post you say it the title parameter is amended (which is not possible), that 'all' linked parameters will be amended (I am not sure how if they are all different parameters).&lt;BR /&gt;
&lt;BR /&gt;
Now you clarify that if one parameter under a title parameter is changed "you would specifiy what parameters should be changed"&lt;BR /&gt;
&lt;BR /&gt;
Isn't this the same as ...&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_MODPAR_NAME = "parameter_1" then&lt;BR /&gt;
    parameter _2 = .....&lt;BR /&gt;
    parameter _3 = .....&lt;BR /&gt;
    parameter _4 = .....&lt;BR /&gt;
    PARAMETERS parameter _2 = parameter _2, parameter _3 = parameter _3, parameter _4 = parameter _4&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
I don't see how you could say...&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_MODPAR_NAME = "parameter_1" then&lt;BR /&gt;
    ALL linked parameter in that group = ....&lt;BR /&gt;
    PARAMETERS ALL linked parameter in that group = ALL linked parameter in that group&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
Then if only some of the parameter should change then as you say "you would specifiy what parameters should be changed".&lt;BR /&gt;
Which mean you are going to have to list the ones you want to change anyway.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I commend you for thinking outside the box, but as I said I will need to see a practical example of how this would work to understand it better.&lt;BR /&gt;
I can't imagine a group of parameters that would all need to be changed in the same way if another parameter is altered (with the exception of maybe swapping all surface materials to become the same).&lt;BR /&gt;
And if they are it is only one line of code to change each of those parameters and then one extra to set them.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 01 Nov 2019 01:45:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268312#M1885</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-11-01T01:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268313#M1886</link>
      <description>@Barry Kelly&lt;BR /&gt;
&lt;BR /&gt;
May be I have expressed myself in the wrong way....&lt;BR /&gt;
&lt;BR /&gt;
My suggestion is (by example):&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_MODPAR_NAME = Parameter Title then &lt;BR /&gt;
parameters \&lt;BR /&gt;
param_01 = ....&lt;BR /&gt;
param_02 = ....&lt;BR /&gt;
param_03 = ....&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
I know that parameter title is not linked to all parameters that are in its group, and &lt;B&gt;that is why I'm asking for it&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
By the way, if I was scripting my own object, by my own way , not reliant on any other previous settings that was put in place that I can't change, then there is a 95% chance that I wouldn't have used "GLOB_MODPAR_NAME", not because I don't know how to use it, but because most of my programming schemas that I design made/makes/would make  "GLOB_MODPAR_NAME" almost irrelevant.</description>
      <pubDate>Fri, 01 Nov 2019 02:23:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268313#M1886</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-01T02:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268314#M1887</link>
      <description>So my question now is, how does a user modify a title?&lt;BR /&gt;
What are they updating as it is has no values to change as you are aware?&lt;BR /&gt;
&lt;BR /&gt;
You can do it now if you change your title to a boolean and make it BOLD.&lt;BR /&gt;
It still looks just like a title and you can link the other parameters under it.&lt;BR /&gt;
And now it is editable so you can trap it with GLOB_MODPAR_NAME.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
"This is a regular tiltle" ? - I will learn to spell one day!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Also being a boolean, you can have it reset automatically to off as soon as the user ticks it.&lt;BR /&gt;
I do this to update a timestamp object that I have.&lt;BR /&gt;

&lt;PRE&gt;if update_swch_1 = 1 then
	x = REQUEST("DateTime","%d %b %Y",dstr)
	x = REQUEST("DateTime","%X",tstr)
	PARAMETERS date = dstr + " " + tstr
	PARAMETERS update_swch_1 = 0
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
So I guess what you are asking for is for a title to have a boolean option so it looks like a title but have a value that can be changed so that you can trap it.&lt;BR /&gt;
Or give the other parameter type the option to look like a tile (all caps with backgound colour).&lt;BR /&gt;
Just noticed if you link other parameters the first parameter does get the background fill.&lt;BR /&gt;
If there are no links then it does not have the background fill.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And I don't see your code becoming any less verbose.&lt;BR /&gt;
You are still saying if this parameter is changed, then change this one and this one and this one.&lt;BR /&gt;
Exactly as it is now?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 01 Nov 2019 03:22:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268314#M1887</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-11-01T03:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion to Improve GLOB_MODPAR_NAME</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268315#M1888</link>
      <description>@barry kelly&lt;BR /&gt;
&lt;BR /&gt;
I understand your point of view, but from my perspective what I'm trying to say in psuedo code is this:&lt;BR /&gt;
&lt;BR /&gt;
if any parameter under a certain title parameter have changed --&amp;gt; then change those parameters.&lt;BR /&gt;
&lt;BR /&gt;
that's why I was suggesting a new version of GLOD_MODPAR_NAME, because that way, you may rearrange parameters under certain titles, and it would be easier even to create circular values.</description>
      <pubDate>Fri, 01 Nov 2019 11:01:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Suggestion-to-Improve-GLOB-MODPAR-NAME/m-p/268315#M1888</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-01T11:01:57Z</dc:date>
    </item>
  </channel>
</rss>

