Home › Forums › Problems and solutions in GDL › Library migration › Forward Migration › Reply To: Forward Migration
April 30, 2019 at 15:16
#4712
James Murray
Participant
I have basic migration (replacement) working, but I can’t figure out how to get parameter values to transfer to new parameters. I have two simple objects, where the old one (AC21) uses the parameter ‘aSurf’ and the new one (AC22) uses the parameter ‘bSurf’. The new one doesn’t have the ‘aSurf’ parameter. Here’s the whole script:
!! Main guid of old placed version of object
actualGUID = FROM_GUID
_startID = '2BA958FF-7CD1-FF4F-BD14-865C49035B48' ! old version
_endID = '4B5E33FD-B9DA-514D-AA20-7ECD437126D0' ! new version
GOSUB 100
!! switch object
SETMIGRATIONGUID actualGUID
END ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
100:
IF actualGUID = _startID THEN
rrr = STORED_PAR_VALUE ("aSurf", aSurf_val) ! get value from old
bSurf = aSurf_val
PARAMETERS bSurf = bSurf ! apply to new
actualGUID = _endID
ENDIF
RETURN
James M