Forward Migration Parameter Change
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-24 11:41 AM
2017-08-24
11:41 AM
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.
Thanks
ArchiCAD 27
Windows 10
Windows 10
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-25 03:06 AM
2017-08-25
03:06 AM
In the Migration script you just do the old parameter setting routine.
I would use the REQ("GDL_version") but you could just hard code the number as well.
Barry.
if actualGuid = _startID_1 then archicad_ver = REQ("GDL_version") PARAMETERS archicad_ver = archicad_ver actualGuid = _endID endif
I would use the REQ("GDL_version") but you could just hard code the number as well.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-25 10:16 AM
2017-08-25
10:16 AM
Barry wrote:Hi, this didn't seem to work for me. No errors or anything, it just didn't work.
In the Migration script you just do the old parameter setting routine.
if actualGuid = _startID_1 then archicad_ver = REQ("GDL_version") PARAMETERS archicad_ver = archicad_ver actualGuid = _endID endifI would use the REQ("GDL_version") but you could just hard code the number as well.
Barry.
ArchiCAD 27
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-25 10:27 AM
2017-08-25
10:27 AM
OK this is your code you posted before.
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.
In that case just use ...
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.
actualGuid = FROM_GUID if actualGuid = "???????????" then archicad_ver = REQ("GDL_version") PARAMETERS archicad_ver = archicad_ver actualGuid = "???????????" endif SETMIGRATIONGUID actualGuidIt could also be because your version number parameter is not a numerical variable but is a string variable?
In that case just use ...
archicad_ver = "21"Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-25 11:13 AM
2017-08-25
11:13 AM
Barry wrote: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.
OK this is your code you posted before.
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.
actualGuid = FROM_GUID if actualGuid = "???????????" then archicad_ver = REQ("GDL_version") PARAMETERS archicad_ver = archicad_ver actualGuid = "???????????" endif SETMIGRATIONGUID actualGuidIt could also be because your version number parameter is not a numerical variable but is a string variable?
In that case just use ...
archicad_ver = "21"Barry.
Thanks
ArchiCAD 27
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-08-25 11:28 AM
2017-08-25
11:28 AM
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.
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 actualGuidBarry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11