<?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: Forward Migration Parameters Not Updating in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243554#M5133</link>
    <description>&lt;BLOCKQUOTE&gt;Gergely wrote:&lt;BR /&gt;Automigration is a special type for migration: it simply does an ID change, without running migration scripts. It is useful to eliminate migrations from new elements, and create step-by-step migration logic through many versions.&lt;/BLOCKQUOTE&gt;

Thanks Gergely.&lt;BR /&gt;
Good to know.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 10 Nov 2017 00:57:31 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-11-10T00:57:31Z</dc:date>
    <item>
      <title>Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243548#M5127</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Ok, I've trawled ArchiTalk and looked at all the migration related posts I could find.&lt;BR /&gt;
&lt;BR /&gt;
I can't seem to get an old parameters value to be assigned to the new one...&lt;BR /&gt;
&lt;BR /&gt;
I've got this in the forward migration of the new one, the old one in the parameter tab and it correctly replaces the right part.&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
			_sActualGUID	= FROM_GUID&lt;BR /&gt;
			_sStartGUID		= "702C61AD-000F-854B-9C83-AA30EB63E947"!19ver&lt;BR /&gt;
			_sEndGUID		= "9B974D0B-BCA4-494E-83F8-8EB7604807E9"!21ver&lt;BR /&gt;
			IF _sActualGUID = _sStartGUID THEN&lt;BR /&gt;
				PRINT "PRINT"&lt;BR /&gt;
				_OldNode = 0																	&lt;BR /&gt;
				check_migration = DELETED_PAR_VALUE ("node_x1", _OldNode)&lt;BR /&gt;
				nX1	=	_OldNode&lt;BR /&gt;
				PARAMETERS	nX1	=	nX1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
				_sActualGUID 	= _sEndGUID&lt;BR /&gt;
			ENDIF&lt;BR /&gt;
			SETMIGRATIONGUID _sActualGUID&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Where "node_x1" is being replaced with "nX1" (did a total format on my whole library parameter naming scheme and this is the last step, probably should her checked it first).&lt;BR /&gt;
&lt;BR /&gt;
I've tried various versions of this and they all seem to result with the part swapping over and just coming in with the new ones default values...&lt;BR /&gt;
&lt;BR /&gt;
Any help would be much appreciated. Thanks.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2017 07:41:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243548#M5127</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-11-07T07:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243549#M5128</link>
      <description>I don't think you need to set _OldNode = 0&lt;BR /&gt;
I don't do this when I am migrating.&lt;BR /&gt;
&lt;BR /&gt;
Also you definitely have a parameter called "node_x1" in the old object?&lt;BR /&gt;
And "nX1" is in your new object.&lt;BR /&gt;
&lt;BR /&gt;
Here is a bit of script I have in one of my objects.&lt;BR /&gt;
basically the same as you have.&lt;BR /&gt;

&lt;PRE&gt;		xx = DELETED_PAR_VALUE ("tile_on", tile_on_old)

		if tile_on_old = 1 then
			wall_tile_swch = 1
			hob_tile_swch = 1
		else
			wall_tile_swch = 0
			hob_tile_swch = 0
		endif
		
		PARAMETERS wall_tile_swch = wall_tile_swch, hob_tile_swch = hob_tile_swch
&lt;/PRE&gt;

Also comment or delete the PRINT "PRINT" line.&lt;BR /&gt;
I am not sure it will do anything anyway - will you get a message?&lt;BR /&gt;
&lt;BR /&gt;
You will know if it has worked if your object swaps which you say it is doing.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 07 Nov 2017 08:02:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243549#M5128</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-11-07T08:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243550#M5129</link>
      <description>Thanks for the quick reply and suggestions Barry.&lt;BR /&gt;
&lt;BR /&gt;
That snippit was the latest test of my code, I had previously tried it without the _OldNode = 0 and the PRINT "PRINT" I forgot to get rid of, it was part of a few PRINT commands to see which parts of the script were running and what values were present. Inconsequential as I never got any readouts from it. The node_x1 parameter is present in the previous version.&lt;BR /&gt;
&lt;BR /&gt;
I shall have another go with the suggestions you mentioned. Thanks.</description>
      <pubDate>Tue, 07 Nov 2017 09:24:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243550#M5129</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-11-07T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243551#M5130</link>
      <description>Ok, I got it working.&lt;BR /&gt;
&lt;BR /&gt;
Tried all you suggestions Barry, unfortunately no avail. But then I ticked the "Auto Migration" to Off, (for some reason I decided to tick it on thinking auto migration would be a good thing, apparently not). Not sure if this is just in 21 or all versions.&lt;BR /&gt;
&lt;BR /&gt;
So it seems to be functioning properly now, I'm going to put my IF check_migration &amp;gt; 0 THEN replace parameter back in as I just have a blanket list of parameters that have shifted and I'm too lazy to individualise it for each object.&lt;BR /&gt;
&lt;BR /&gt;
Hope it works, Thanks again Barry.</description>
      <pubDate>Tue, 07 Nov 2017 10:00:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243551#M5130</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-11-07T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243552#M5131</link>
      <description>I have no idea what "auto migration' does.&lt;BR /&gt;
Can't even see anything about it in GDLCenter or HelpCenter&lt;BR /&gt;
&lt;BR /&gt;
I just leave it off as well.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 08 Nov 2017 01:07:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243552#M5131</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-11-08T01:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243553#M5132</link>
      <description>Automigration is a special type for migration: it simply does an ID change, without running migration scripts. It is useful to eliminate migrations from new elements, and create step-by-step migration logic through many versions.</description>
      <pubDate>Thu, 09 Nov 2017 15:34:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243553#M5132</guid>
      <dc:creator>Gergely Feher</dc:creator>
      <dc:date>2017-11-09T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameters Not Updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243554#M5133</link>
      <description>&lt;BLOCKQUOTE&gt;Gergely wrote:&lt;BR /&gt;Automigration is a special type for migration: it simply does an ID change, without running migration scripts. It is useful to eliminate migrations from new elements, and create step-by-step migration logic through many versions.&lt;/BLOCKQUOTE&gt;

Thanks Gergely.&lt;BR /&gt;
Good to know.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 10 Nov 2017 00:57:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameters-Not-Updating/m-p/243554#M5133</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-11-10T00:57:31Z</dc:date>
    </item>
  </channel>
</rss>

