Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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?
-
UMLDiagram is a diagram frame that appears on another diagram.
I don't think there is a template selector based on diagram type.
-
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.
-
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.