Do you mean the same as switching what one civilization has researched with what another civilization has researched.
If this is the case then upon triggering the event you should create a temporary array with size equal to the total number of technologies and hold True/False values in that array equal to what Civilization 1 has. Next, you go through Civilization 2's technologies and change Civilization 1 to have an identical copy. Finally, you go back through that temporary array you created from Civilization 1 and you make Civilization 2's technology tree equal what you stored in the Array.
This is possible, yes.