<?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 Parameter Change in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224044#M5394</link>
    <description>The only other thing I can think of is you may need to check that the old object has the parameter and get its value before you change it.&lt;BR /&gt;

&lt;PRE&gt;actualGuid = FROM_GUID 
 if actualGuid = "???????????" then 

xx = DELETED_PAR_VALUE ("archicad_ver", archicad_ver)

archicad_ver = REQ("GDL_version") 
PARAMETERS archicad_ver = archicad_ver 

 actualGuid = "???????????" 
 endif 
 SETMIGRATIONGUID actualGuid&lt;/PRE&gt;

Barry.</description>
    <pubDate>Fri, 25 Aug 2017 09:28:46 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-08-25T09:28:46Z</dc:date>
    <item>
      <title>Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224039#M5389</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I finally got forward migration working but I have one small issue. Due to the fact that I have a parameter which contains the ArchiCAD version number the old value from the parameter carries through. Is there a way to change the parameter value when migrating? If so what it the script and in which object should I place it? The reference guide doesn't really explain very well.&lt;BR /&gt;
&lt;BR /&gt;
 Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:41:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224039#M5389</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-24T09:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224040#M5390</link>
      <description>In the Migration script you just do the old parameter setting routine.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;if actualGuid = _startID_1 then

archicad_ver = REQ("GDL_version")
PARAMETERS archicad_ver = archicad_ver

actualGuid = _endID

endif
&lt;/PRE&gt;

&lt;BR /&gt;
I would use the REQ("GDL_version") but you could just hard code the number as well.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 25 Aug 2017 01:06:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224040#M5390</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-25T01:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224041#M5391</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;In the Migration script you just do the old parameter setting routine.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;if actualGuid = _startID_1 then

archicad_ver = REQ("GDL_version")
PARAMETERS archicad_ver = archicad_ver

actualGuid = _endID

endif
&lt;/PRE&gt;

I would use the REQ("GDL_version") but you could just hard code the number as well.&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt;

Hi, this didn't seem to work for me. No errors or anything, it just didn't work.</description>
      <pubDate>Fri, 25 Aug 2017 08:16:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224041#M5391</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-25T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224042#M5392</link>
      <description>OK this is your code you posted before.&lt;BR /&gt;
Fill in your GUID numbers and change "achicad_ver" for the name of the parameter you are using in your object for the version number.&lt;BR /&gt;

&lt;PRE&gt;actualGuid = FROM_GUID 
 if actualGuid = "???????????" then 

archicad_ver = REQ("GDL_version") 
PARAMETERS archicad_ver = archicad_ver

 actualGuid = "???????????" 
 endif 
 SETMIGRATIONGUID actualGuid&lt;/PRE&gt;

It could also be because your version number parameter is not a numerical variable but is a string variable?&lt;BR /&gt;
In that case just use ...&lt;BR /&gt;

&lt;PRE&gt;archicad_ver = "21"&lt;/PRE&gt;

Barry.</description>
      <pubDate>Fri, 25 Aug 2017 08:27:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224042#M5392</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-25T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224043#M5393</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;OK this is your code you posted before.&lt;BR /&gt;
Fill in your GUID numbers and change "achicad_ver" for the name of the parameter you are using in your object for the version number.&lt;BR /&gt;

&lt;PRE&gt;actualGuid = FROM_GUID 
 if actualGuid = "???????????" then 

archicad_ver = REQ("GDL_version") 
PARAMETERS archicad_ver = archicad_ver

 actualGuid = "???????????" 
 endif 
 SETMIGRATIONGUID actualGuid&lt;/PRE&gt;

It could also be because your version number parameter is not a numerical variable but is a string variable?&lt;BR /&gt;
In that case just use ...&lt;BR /&gt;

&lt;PRE&gt;archicad_ver = "21"&lt;/PRE&gt;

Barry.&lt;/BLOCKQUOTE&gt; I tried this exact code both the hardcode and the REQ command but neither of those worked for some reason. I just hardcoded it into my 21 object so it just refreshes script upon migration. &lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 25 Aug 2017 09:13:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224043#M5393</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-25T09:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Migration Parameter Change</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224044#M5394</link>
      <description>The only other thing I can think of is you may need to check that the old object has the parameter and get its value before you change it.&lt;BR /&gt;

&lt;PRE&gt;actualGuid = FROM_GUID 
 if actualGuid = "???????????" then 

xx = DELETED_PAR_VALUE ("archicad_ver", archicad_ver)

archicad_ver = REQ("GDL_version") 
PARAMETERS archicad_ver = archicad_ver 

 actualGuid = "???????????" 
 endif 
 SETMIGRATIONGUID actualGuid&lt;/PRE&gt;

Barry.</description>
      <pubDate>Fri, 25 Aug 2017 09:28:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Forward-Migration-Parameter-Change/m-p/224044#M5394</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-25T09:28:46Z</dc:date>
    </item>
  </channel>
</rss>

