Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: njf on November 21, 2011, 02:28:33 pm

Title: Using templates with LoadLinkedDocument
Post by: njf on November 21, 2011, 02:28:33 pm
When using the API, is it possible to use the LoadLinkedDocument method in the element class to load a template that is contained within the Linked Document Templates section?

When I tried to do LoadLinkedDocument("Revision History") where "Revision History" is the template name, it just errors out with null value error.

Or do I have to have an external RTF file and use that in the LoadLinkedDocument instead? I would prefer to be able to use the templates that are stored within EA.

Thanks,
njf
Title: Re: Using templates with LoadLinkedDocument
Post by: Eve on November 22, 2011, 08:15:42 am
The argument is a filename.
Title: Re: Using templates with LoadLinkedDocument
Post by: njf on November 22, 2011, 09:57:22 am
Thanks Simon, I had figured out as much. Is there no way of accessing the templates from the API?