enterprise architect - Default diagram for Toolbox -


i have custom toolbox foo element.

i foo green on class diagram , red on flow chart diagram default.

adding more 1 stereotype non- uml type impossible (as far know).

is possible create 2 toolboxes- 1 class diagrams , 1 flow charts, specifying default diagram each toolbox in profile?

not quite way describe it.

toolboxes don't specify diagram open, it's other way around: create custom diagram type , associate toolbox. different custom diagrams may use same custom toolbox.

you can create 2 custom diagram types, 1 class ("logical") , 1 flow chart ("activity"), if you're after getting same stereotyped element (foo) display differently in diagrams, don't need to.

the solution create shape script stereotype, checks diagram type , changes color accordingly. diagram type can queried shape script using diagram.type property (for base uml diagram type), or diagram.mdgtype (for custom diagram type, if you've defined one). there no need create add-in, answer suggests, @ least not in ea 11.

check file under extending uml models -- mdg technology sdk -- shape scripts -- write scripts -- display element/connector properties.

a simple script might this:

shape main {     if (hasproperty("diagram.type", "logical")) {         setfillcolor(0, 255, 70);     } else if (hasproperty("diagram.type", "activity")) {         setfillcolor(255, 87, 87);     }     drawnativeshape(); }; 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -