Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ethan_AUbin on June 06, 2006, 08:03:36 am
-
Hi, I'm trying to generate some custom documentation, but cannot figure out how to get the rtf from a document artifact. Could one of you EA experts post a snippet showing how its done (in vb or C#)? Thanks! - E
-
If you use the rtf generator, be sure that the option "Model Document" is switched on in your template. You'll find it in the rtf template editor on the left side under element and under package.
Using C# or VB is difficult, as the content of a document artifact is stored in a zipped format and afaik there is no get-and-unzip-method in the API.
hth Stefan
-
Thanks for the response Steve, I can't get the RTF Generator to do what I want. (Problems with the editor, cutting and pasting protected text, swapping the order of elements produced i.e. stuff for another thread).
Using C# or VB is difficult, as the content of a document artifact is stored in a zipped format and afaik there is no get-and-unzip-method in the API.
hth Stefan
If it the normal zip file format, then I'd be willing to jump through the hoops of finding/calling an external library to zip/unzip the content.
Sparx developers, it would be amazingly great if you added access to the RTF in the automation interface.