Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Yves C on November 19, 2008, 02:38:54 am
-
I've created a MDG Technology with new profile toolboxes. Everything works fine except one thing :
I would like to add EA Analysis Classes stereotypes in my toolboxes but I don't know how to reference them. Normally when you add a stereotype from a given profile to a toolbox you define it as follows :
ProfileName::StereotypeName(UML::extended metaclass)
But I can't find the real name to define, for instance, the Boundary class.
I've found that Boundary object (and not class) is defined as UML::RobustBoundary but I'm looking for the class stereotype and not the object stereotype.
-
Search the help for "Elements Used in Toolboxes". This will give you a list of what can be extended or redefined.
-
My problem is that the stereotypes I'm looking for are not in this list. They are defined in EA (you can give a class the stereotype boundary) but not used in any EA toolbox.
-
Have you tried the metaclass "Class" and the stereotype "Boundary" then in the toolbox attributes use the UML::Class specifier.
The toolbox will show Boundary as the element with a class icon (but this can be changed)
When you add it to the diagram it will be a Class element with a Boundary stereotype and the Boundary sterotype icon will be displayed (diagram settings allowing)
Is this the effect you're looking for?
If you want to call it something different to Boundary then I think you're out of luck.
Been struggling with this one myself without having to go down the shape script path.
-
My problem is that the stereotypes I'm looking for are not in this list. They are defined in EA (you can give a class the stereotype boundary) but not used in any EA toolbox.
Try adding "boundary", "control" and "entity" as stereotypes extending "Class" to a profile of your own, and then you can use them in your own toolbox: "MyProfile::boundary(UML::Class)"
-
Yes it works fine. Thanks.