2017-08-24 11:41 AM
2017-08-25 03:06 AM
if actualGuid = _startID_1 then archicad_ver = REQ("GDL_version") PARAMETERS archicad_ver = archicad_ver actualGuid = _endID endif
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.
2017-08-25 10:27 AM
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?
archicad_ver = "21"Barry.
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.
2017-08-25 11:28 AM
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.