Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Migrating from 2 objects into 1?

JGoode
Expert
Hi,
I am trying to migrate 2 old objects (one horizontal and one vertical) into 1 new object which has both options. Is there a way for me to get the object to automatically select which orientation it chooses depending on which old object is being migrated?
Thanks!
ArchiCAD 23

Windows 10
3 REPLIES 3
Barry Kelly
Moderator
Each old object will have its own unique GUID.
So in you migration script you need to do something like.
if GUID_1 then
set new object parameter horizontal
endif
if GUID_2 then
set new object parameter vertical
endif
Set new GUID
That is not the actual code of course - just what yo have to do.

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
JGoode
Expert
Thank you, Barry. I get a bit perplexed with the forward migration script and how to structure it.

With the final bit where you have said 'Set new GUID', what GUID would I put there? The new object GUID?
ArchiCAD 23

Windows 10
Barry Kelly
Moderator
Yes that is the GUID of the new object.

So basically you are checking for the GUID of the old object.
Then you set the parameters for the new object so it becomes what you want.
And then set the GUID of the new object so it swaps over to the new object.
The old objects should no longer exist in your loaded library otherwise the swap will not occur.

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