In 2008 in my previous company, I assigned this task to our programmers - it was constructed as .Net addin. There was a functional prototype, however there were some bugs to be resolved.
Brief functionalities
- for selected package (branch) store generation options in tagged values (there was also cleanup script to remove those tags)
- generation options were roughly the same as in Insert related elements dialogue + there was a filter to object types which the generation should be applied on
- for each element in branch (that corresponded to the filter) it generated composite diagram whit @prefix in his name (so if you edited any of those manually, you just removed @ and re-generation didn't overwrite it
I have no clue, if it works in EA15, but there would be license issues anyway (the company never sold it to anyone, still it is their property). However, if someone is interested, I can look around, if I can find my old specification and I also think, I could show a demo on teams meeting (if it works with EA15...), so you get the idea.
Even though I know EA data model well (and understand the object model), this task is still beyond my skills - I would prefere to use the new in-model addin feature, but didn't get chance to search for its capabilities - however - I work in banking environment and anythink that needs to be installed on PC is a problem - thus in-model addins seem to be promissing solution...