Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: jplusip on July 30, 2015, 12:29:55 am

Title: Where can I see the different "types" in EA?
Post by: jplusip on July 30, 2015, 12:29:55 am
Specifically, I'm working with the Template Selector and I want to know what the type for a SysML sequence diagram is. I looked at the Template Selector example, and I see UMLDiagram, but does that apply to the SysML diagrams?
Title: Re: Where can I see the different "types" in EA?
Post by: Eve on July 30, 2015, 08:03:30 am
UMLDiagram is a diagram frame that appears on another diagram.

I don't think there is a template selector based on diagram type.
Title: Re: Where can I see the different "types" in EA?
Post by: jplusip on July 31, 2015, 05:23:50 am
Quote
UMLDiagram is a diagram frame that appears on another diagram.

I don't think there is a template selector based on diagram type.

So, in that case, what is the template selector for just a diagram?

Ideally, I'd like to give a subset of diagrams a stereotype so that I can pull them for a report using the template selector. Suppose the stereotype is "123"; how would I set that up in the template selector? I've tried:
Diagram:123:[fragment name]

and it doesn't seem to work.
Title: Re: Where can I see the different "types" in EA?
Post by: Eve on July 31, 2015, 08:38:46 am
Diagrams will not be considered by the template selector AT ALL. It only applies to the element section of the template.

If you want to use a different template for different diagram types, the ONLY way to do it is using the script Document Generator Interface (http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/automation_and_scripting/document_generator_interface.html).

That way you can call DocumentDiagram () for any diagram and specify the template you want.