- Tue Nov 07, 2017 8:41 am
#273988
Ok, I've trawled ArchiTalk and looked at all the migration related posts I could find.
I can't seem to get an old parameters value to be assigned to the new one...
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.
[code]
_sActualGUID = FROM_GUID
_sStartGUID = "702C61AD-000F-854B-9C83-AA30EB63E947"!19ver
_sEndGUID = "9B974D0B-BCA4-494E-83F8-8EB7604807E9"!21ver
IF _sActualGUID = _sStartGUID THEN
PRINT "PRINT"
_OldNode = 0
check_migration = DELETED_PAR_VALUE ("node_x1", _OldNode)
nX1 = _OldNode
PARAMETERS nX1 = nX1
_sActualGUID = _sEndGUID
ENDIF
SETMIGRATIONGUID _sActualGUID
[/code]
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).
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...
Any help would be much appreciated. Thanks.
I can't seem to get an old parameters value to be assigned to the new one...
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.
[code]
_sActualGUID = FROM_GUID
_sStartGUID = "702C61AD-000F-854B-9C83-AA30EB63E947"!19ver
_sEndGUID = "9B974D0B-BCA4-494E-83F8-8EB7604807E9"!21ver
IF _sActualGUID = _sStartGUID THEN
PRINT "PRINT"
_OldNode = 0
check_migration = DELETED_PAR_VALUE ("node_x1", _OldNode)
nX1 = _OldNode
PARAMETERS nX1 = nX1
_sActualGUID = _sEndGUID
ENDIF
SETMIGRATIONGUID _sActualGUID
[/code]
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).
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...
Any help would be much appreciated. Thanks.