Dear all,
first, hello to all this is my first post in this forum.
second, in parallel I have asked this question to the support of sparx systems. But they said, that they have to investigate my problem. So maybe some one of you has allready solved this problem.
So what I want to do:
I want to set the default behaviour of document generation in EA via an AddIn written in C#.
For this I am creating a virtual document with 1 master-document, several model-documents for each kind of document which shall be generated.
This step is done and works.
Each model-document will be connected with the packages, which shall be documented with this template.
This step is also done and works.
The next step is to import the created rtf-templates into the document generator and connect the templates with the model-documents.
And here is my problem.
First Problem:
I have found that via the command
repository.CreateDocumentGenerator()
I can have access to the document generator. But I can't find the
method to import a rtf-file (e.g. from the local harddrive) as a new template.
Second Problem:
In EA12 I can connect the rtf-template with a model-document by right clicking on the model-document->Properties->Tags->RTFTemplate and choose there one rtf-template.
But when I have a look on the sql-database of this project, I can't find this link between the rtf-template and the model-document.
I hope this long explanation clarrifies where currently my problems are

.