Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: albert on April 04, 2017, 11:35:33 pm

Title: Where are stored the Document generation templates ?
Post by: albert on April 04, 2017, 11:35:33 pm
Hello,

Where are stored the Document generation templates created by the user and also those that are imported via MDG Technologies ?

Thanks in advance,
Albert
Title: Re: Where are stored the Document generation templates ?
Post by: qwerty on April 04, 2017, 11:53:58 pm
Try
Code: [Select]
SELECT * FROM t_document WHERE ElementID="SSDOCSTYLE"
q.
Title: Re: Where are stored the Document generation templates ?
Post by: albert on April 05, 2017, 06:32:28 pm
Thanks for your help. Thanks also for your e-books, very helpful.

One more question : do you have any ideas how to import reference data (scripts and templates) via a JScript script or a C# Add-In ?

I currently encounter a bug (as admitted by the EA support) :

Best regards
Title: Re: Where are stored the Document generation templates ?
Post by: qwerty on April 05, 2017, 07:08:08 pm
See on p. 39 of Scripting:
Code: [Select]
xmlres = Respository.CustomCommand("Repository", "ImportRefData", sXML);
In a former EA version I had issues importing image data where the internal IDs got mixed up. I don't know whether that has been fixed in the mean time. But ever since I use my own SQL-based import for image data which works pretty well.

q.
Title: Re: Where are stored the Document generation templates ?
Post by: albert on April 06, 2017, 05:52:37 pm
Thanks, it works fine