Migrating from 2 objects into 1?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-12-08 12:57 PM
2017-12-08
12:57 PM
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
Windows 10
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-12-11 01:49 AM
2017-12-11
01:49 AM
Each old object will have its own unique GUID.
So in you migration script you need to do something like.
Barry.
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 GUIDThat 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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-12-11 01:44 PM
2017-12-11
01:44 PM
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?
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
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-12-12 01:44 AM
2017-12-12
01:44 AM
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.
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
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