<?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: Migrating a modified gdl in an existing drawing in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298722#M5202</link>
    <description>maybe one by one ...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;</description>
    <pubDate>Sun, 30 Jul 2017 21:06:54 GMT</pubDate>
    <dc:creator>alemanda</dc:creator>
    <dc:date>2017-07-30T21:06:54Z</dc:date>
    <item>
      <title>Migrating a modified gdl in an existing drawing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298721#M5201</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello :&lt;BR /&gt;
I've just posted this. However, it appears I've sent the message to myself ! So here it is again, this time on the forum with luck.&lt;BR /&gt;
&lt;BR /&gt;
Given : gdl.1 and drawing.1 containing multiple instances of gdl.1, many with different parameters.&lt;BR /&gt;
&lt;BR /&gt;
I want to modify the gdl code.&lt;BR /&gt;
1 I save a copy of gdl.1 to gdl.2&lt;BR /&gt;
2 Modify gdl.2, test and save it.&lt;BR /&gt;
&lt;BR /&gt;
I understand gdl.2 now has a different internal ID.&lt;BR /&gt;
&lt;BR /&gt;
How do I tell ArchiCAD to use gdl.2 in drawing.1 in place of gdl.1?&lt;BR /&gt;
&lt;BR /&gt;
i.e. with no changes to any of the existing objects in the drawing?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Jul 2017 15:00:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298721#M5201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-30T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating a modified gdl in an existing drawing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298722#M5202</link>
      <description>maybe one by one ...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sun, 30 Jul 2017 21:06:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298722#M5202</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2017-07-30T21:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating a modified gdl in an existing drawing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298723#M5203</link>
      <description>Yes, because you have created a brand new GDL2 object you will need to select each GDL1 object, open the settings dialogue, browse for GDL2 and CTRL+ALT (inject) the existing parameters into GDL2 to pass on the parameters.&lt;BR /&gt;
You will have to do this one by one.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise what you could have done is 'SAVE' the object script instead of 'SAVE AS'.&lt;BR /&gt;
This would update all your existing objects automatically with the new code.&lt;BR /&gt;
&lt;BR /&gt;
You could now COPY the code from GDL2 and paste it back in GDL1 and then 'SAVE'.&lt;BR /&gt;
&lt;BR /&gt;
Updating and saving the original object will affect all instances of that object in all files where the library containing that object is loaded.&lt;BR /&gt;
So if you want to change all objects keeping there original settings then SAVE is the way to go.&lt;BR /&gt;
&lt;BR /&gt;
You do have to be a little careful that the changes you make in the code don't break the objects.&lt;BR /&gt;
If you add new parameters remember they won't be in the already placed instances so will use the defaults you sav in the amended object.&lt;BR /&gt;
&lt;BR /&gt;
Something else you can look into is "Migrating" an object form one to another.&lt;BR /&gt;
So you can have the original GDL1 migrate to the new GDL2 object.&lt;BR /&gt;
It is possible to alter the values of new parameters in GDL2 based on values of old parameters in GDL1 or pass on the parameters as they were.&lt;BR /&gt;
It is a bit more of an advanced GDL method so I wouldn't try to understand it unless you know what you are doing.&lt;BR /&gt;
I don't think there is much documentation on it - I learnt by looking at the script of objects in the migration libraries.&lt;BR /&gt;
You also need to delete GDL1 from your loaded library in order for GDL2 to automatically replace it - otherwise placed instances will just stay as they were.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 01 Aug 2017 02:58:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298723#M5203</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-01T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating a modified gdl in an existing drawing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298724#M5204</link>
      <description>Hello Barry :&lt;BR /&gt;
Thank you for your detailed reply.&lt;BR /&gt;
&lt;BR /&gt;
It may be migration is the way to go. I tend to make quite extensive changes to my gdl objects as I gain experience and think of new ways to do things.&lt;BR /&gt;
And of course old files now show lots of green dots.&lt;BR /&gt;
&lt;BR /&gt;
I can copy and paste the code easily enough. However, I also make changes to the parameter page. And there are lots of custom parameters. I guess those can't be copied easily except by saving a copy of the file.&lt;BR /&gt;
&lt;BR /&gt;
And of course working on the original document is a bad idea if one is making extensive changes to the code. Or in my case, even minor ones !&lt;BR /&gt;
&lt;BR /&gt;
I'll do some experimenting.&lt;BR /&gt;
&lt;BR /&gt;
Thank you again.&lt;BR /&gt;
&lt;BR /&gt;
Regards : Hubert Wagner&lt;BR /&gt;
France</description>
      <pubDate>Sat, 05 Aug 2017 16:15:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Migrating-a-modified-gdl-in-an-existing-drawing/m-p/298724#M5204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-05T16:15:41Z</dc:date>
    </item>
  </channel>
</rss>

