Sorry if I wasn't clear.
So, I'm first creating model A and setting attributes on it, using Sketchup.active_model.set_attribute. Then I'll save this out.
Then I'll create a new model, model B, and import model A's .skp file into it. Sketchup.active_model therefore returns B after the import.
I've got entities in the new model that reference data in the model A's attribute_dictionary.
What I'd like to do is somehow, during the import process, merge model A's attribute_dictionary into model B's.
To add a little background, the XML chunks are used to define metadata for individual entities. Many entities share common metadata so what I've done is create a model level database to store the actual XML and then just have the individual entities store an index. This dramatically cut down the .skp file size.
The only issue that I'm having now is with the import. One thing that I thought about doing was instead of storing the database at the model level, just create another dedicated entity to store it, that way it would always be available after import.
Hope that made sense... Thanks for your help!
Josh