Forward Migration

This topic contains 4 replies, has 3 voices, and was last updated by  James Goode 3 months ago.

  • Author
    Posts
  • #3480

    James Goode
    Participant

    I am trying to be able to migrate one object and a lot of variations of that object from 19 to 21 using 2 different objects, one specific to 19 and one specific to 21. I can’t seem to get it to work at all. At the moment all I have is;

    actualGuid = FROM_GUID
    if actualGuid = “27D27CB8-5923-458A-80FA-6A8EC6B78CFF-CD32FA39-611C-47A7-A038-153F79AB5332” then
    actualGuid = “27D27CB8-5923-458A-80FA-6A8EC6B78CFF}-{ABCDACD1-CE3F-CA4F-9195-B15EB1DAFA5F”
    endif
    SETMIGRATIONGUID actualGuid

    All it does it change the GUID of the original object (19) to the new object (21) but only if the actual GUID in the code above is exactly the same as the new object (21). I don’t know how to make this work.

    Thanks

  • #3484

    Barry Kelly
    Participant

    As far as I can see that should work – that is basically the script I use.
    But as mentioned in Archicad-talk …

    However make sure you have the old GUID in the ‘Migration’ list – that is a different button to the ‘Forward Migration’ script. Do not have the new GUID in that list.

    Also make sure you do not have the old object in you loaded libraries. If you do the swap will not happen.

    Barry.

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3489

    Gergely Fehér
    Keymaster

    James,

    FROM_GUID always stores the main ID of your library parts – so “27D27CB8-5923-458A-80FA-6A8EC6B78CFF-CD32FA39-611C-47A7-A038-153F79AB5332” seems a bit too long, I think only the first half will be your old ID. The new main ID should be different – but in your sample it’s the same, so first change the main ID of yout object, then change the script to follow up this change from the old main ID to the new one.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #3490

    Barry Kelly
    Participant

    As I look closer I also see your new ID has brackets in the middle – }-{
    I didn’t notice the length of the ID (yes it is too long) but I think it is the last part that is the object ID.
    Isn’t the first part the subtype?

    I always get my IDs from the MIGRATION list.
    Press the ‘NEW’ button and then ‘Browse for Migrated Object’ to get the ID.
    I also browse for the new object ID there but be sure to delete it after you copy and paste it.
    Leave the old object IDs that you want to migrate in that list.

    Barry.

    Attachments:

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3492

    James Goode
    Participant

    Thanks very much, I had to pull the GUID from the Migration list as using the second half of the sub-type guid didn’t work. All working now. 🙂

You must be logged in to reply to this topic.