<?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: Copy Parameters to another parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230544#M9552</link>
    <description>Barry,&lt;BR /&gt;
&lt;BR /&gt;
I think that the "if GLOB_MODPAR_NAME then ... else ... endif" method is much better, as in my mind the most important role of parameter script is to keep the consistency between an objects parameters. Without forcing parameter linking, you can have problems with changing parameters with multiple selection or parameter transfer. &lt;BR /&gt;
&lt;BR /&gt;
About the speed I don't think that my method is slower than yours, as in your solution there is always 2 string comparisons in the 2 "if GLOB_MODPAR_NAME ..." lines - and string comparisons are a quite slow thing in any programming languages.&lt;BR /&gt;
&lt;BR /&gt;
If you have any questions about a specific topic, please send your requests to us via the GDL center's forum or by mail - we try to answer as many problems as possible in the Tips&amp;amp;Tricks section of the site.</description>
    <pubDate>Wed, 04 Nov 2015 08:19:22 GMT</pubDate>
    <dc:creator>Gergely Feher</dc:creator>
    <dc:date>2015-11-04T08:19:22Z</dc:date>
    <item>
      <title>Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230539#M9547</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I wonder how I could copy my Parameter "Article_no" to "FM_SerialNumber" &lt;BR /&gt;
And I wish to have same information in Both even if I fill in "FM_SerialNumber" it should effekt "Article_no".&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I know this is not the way, and this is not the way... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_razz.gif" style="display : inline;" /&gt;
&lt;PRE&gt;Article_no = FM_SerialNumber
FM_SerialNumber = Article_no&lt;/PRE&gt;

Do anyone understands what I want? &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Nov 2015 08:52:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230539#M9547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-03T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230540#M9548</link>
      <description>How about ...&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "Article_no" then
FM_SerialNumber = Article_no
PARAMETERS FM_SerialNumber = FM_SerialNumber
endif

if GLOB_MODPAR_NAME = "FM_SerialNumber" then
Article_no = FM_SerialNumber 
PARAMETERS Article_no = Article_no
endif
&lt;/PRE&gt;

Barry.</description>
      <pubDate>Tue, 03 Nov 2015 09:25:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230540#M9548</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-11-03T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230541#M9549</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;How about ...&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "Article_no" then
FM_SerialNumber = Article_no
PARAMETERS FM_SerialNumber = FM_SerialNumber
endif

if GLOB_MODPAR_NAME = "FM_SerialNumber" then
Article_no = FM_SerialNumber 
PARAMETERS Article_no = Article_no
endif
&lt;/PRE&gt;

Barry.&lt;/BLOCKQUOTE&gt;

Well Barry I could hug you right now! Thanks alot!&lt;BR /&gt;
&lt;BR /&gt;
What should I read to become a master of GLD?</description>
      <pubDate>Tue, 03 Nov 2015 09:35:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230541#M9549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-03T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230542#M9550</link>
      <description>It' better to use it in the following form:&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "param1" then
    param2 = param1
    parameters param2 = param2
else
    param1 = param2
    parameters param1 = param1
endif
&lt;/PRE&gt;
This method forces the linking of parameters - if any other parameters changed by another function or addon.&lt;BR /&gt;
&lt;BR /&gt;
To read more about GDL, you should check GDL Center at gdl.graphisoft.com.</description>
      <pubDate>Tue, 03 Nov 2015 10:14:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230542#M9550</guid>
      <dc:creator>Gergely Feher</dc:creator>
      <dc:date>2015-11-03T10:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230543#M9551</link>
      <description>&lt;BLOCKQUOTE&gt;Gergely wrote:&lt;BR /&gt;It' better to use it in the following form:&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "param1" then
    param2 = param1
    parameters param2 = param2
else
    param1 = param2
    parameters param1 = param1
endif
&lt;/PRE&gt;
This method forces the linking of parameters - if any other parameters changed by another function or addon.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is this really better?&lt;BR /&gt;
This would mean if I adjust param3, param4, param5, etc., then param1 is always going to be forced to equal param2 (which it should already be).&lt;BR /&gt;
Params 3, 4, 5, etc., probably have nothing to do with the other two so why make the script perform more computations than it needs to every time any parameter is changed?&lt;BR /&gt;
I know we are talking nano-seconds in computing time but is there really a need to do it?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
As for learning GDL the reference manual (and now GDL Centre) are fine ut lack examples.&lt;BR /&gt;
I still find the GDL Cookbook by David Nicholson-Cole is quite good - although a little out-dated now.&lt;BR /&gt;
It explains things quite well and has example objects you can make.&lt;BR /&gt;
Google it or search in this forum for links.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 04 Nov 2015 01:44:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230543#M9551</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-11-04T01:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230544#M9552</link>
      <description>Barry,&lt;BR /&gt;
&lt;BR /&gt;
I think that the "if GLOB_MODPAR_NAME then ... else ... endif" method is much better, as in my mind the most important role of parameter script is to keep the consistency between an objects parameters. Without forcing parameter linking, you can have problems with changing parameters with multiple selection or parameter transfer. &lt;BR /&gt;
&lt;BR /&gt;
About the speed I don't think that my method is slower than yours, as in your solution there is always 2 string comparisons in the 2 "if GLOB_MODPAR_NAME ..." lines - and string comparisons are a quite slow thing in any programming languages.&lt;BR /&gt;
&lt;BR /&gt;
If you have any questions about a specific topic, please send your requests to us via the GDL center's forum or by mail - we try to answer as many problems as possible in the Tips&amp;amp;Tricks section of the site.</description>
      <pubDate>Wed, 04 Nov 2015 08:19:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230544#M9552</guid>
      <dc:creator>Gergely Feher</dc:creator>
      <dc:date>2015-11-04T08:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Parameters to another parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230545#M9553</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Gergely wrote:&lt;BR /&gt;It' better to use it in the following form:&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "param1" then
    param2 = param1
    parameters param2 = param2
else
    param1 = param2
    parameters param1 = param1
endif
&lt;/PRE&gt;
This method forces the linking of parameters - if any other parameters changed by another function or addon.
&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;

Hi to all,&lt;BR /&gt;
&lt;BR /&gt;
First I want to thank everyone here, without you I wouldn't have grasped the GLOB_MODPAR_NAME&lt;BR /&gt;
&lt;BR /&gt;
Second, for the people who will ask theirselves how to apply the same idea for more than 2 parameters, just follow the same block and repeat for every parameter you want to link&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/7128i4CF9FC47FC864ECA/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Wed, 07 Jun 2017 06:24:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Copy-Parameters-to-another-parameters/m-p/230545#M9553</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2017-06-07T06:24:35Z</dc:date>
    </item>
  </channel>
</rss>

