I am in charge of generating documentation of the models of the company I work for. Been trying to produce a RTF template using EA's template generator for a while already. Unfortunately, without success.
Basically I need to do 2 things:
1) Given a scope (a package), print all the classes of type 'x' that appears in at least one diagram in the given scope package (and all its children, their children as well and so on), as long as all the classes of type 'y' that are also in a diagram of the scope package and which have a relation of type 'r' with the classes 'x';
2) For the classes of type 'z' in the same scope as above, print all its hierarchy in a custom formatting. Supposing that Person is supertype of Man and Woman, Man is supertype of Husband and Woman supertype of Bride, the document must look like:
Person
Man
Husband
Woman
Bride
Now I would like to know if any of you have ever done anything like that and what would you recommend me to do. I tried to use SQL queries joint with template fragments, but could not obtain the expected result.
My last hope is to use scripts, instead of SQL, to see if it can be done. However, I didnt find any documentation talking about using scripts with RTF document generation.
Another solution would be to use a library to generate a MS-Word document and create an addin to solve the problem, thus forgetting the EA's document generation at all.
Sorry about the long post, but what would you guys recommend? Any hint is welcome.
Thanks!