Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KP

Pages: 1 ... 154 155 [156] 157 158 ... 169
2326
Quote
Hello,

I am trying to create a profile with a composite diagram.
The "son" diagram must be a State Machine diagram.

I created a profile where, in my diagram type part, I created a metaclass object named Diagram_StateMachine and a stereotype object linked with an extends.
The name of the stereotype object is the name of my kind of diagram.

If in my metaclass I write Diagram_Sequence or Diagram_Use Case I have the correct type of diagram (seq or Use case). Every diagram works except State Machine. Do you know how to do it (maybe there is a particuliar way to write State Machine ? (but I tried a lot of combinations))

Thank you.
Diagram_Statechart. See this page for the full list.

2327
Automation Interface, Add-Ins and Tools / Re: Create GUIDs
« on: April 28, 2010, 08:45:41 am »
Quote
(I'm using VB, btw)
In Visual Studio 2008 use Tools > Create GUID (other versions of VS will have the same or similar)

2328
Shape scripts have recently been enabled for sequence diagrams in EA 8, and just for messages and lifelines (the shape at the head of the lifeline only). It isn't yet possible to shape script endpoints, gates or interaction states.

2329
It appears to be used for filling listboxes and comboboxes, for example on the Auto Name Counters dialog (Settings > Auto Name Counters). You can also create a custom tagged value which enumerates the table contents (Type=Enum;List=ObjectTypes;)

2330
Automation Interface, Add-Ins and Tools / Re: EA_OnDiagramClose
« on: March 17, 2010, 09:10:52 am »
They are called EA_DiagramOpen & EA_DiagramClose in the source code, but I believe they will be changing before EA 8 goes official, probably to EA_OnPostDiagramOpen & EA_OnPostDiagramClose, so please be aware that it's all subject to change.

2331
You can intercept the double-click event and open your own properties dialog. Search the help for EA_OnContextItemDoubleClicked

2332
Quote
how do these orphans appear and is there any way to delete them?
As Paolo mentioned, an orphan is an element that doesn't appear in any diagram. This is perfectly valid. In fact it's perfectly valid to have a model without any diagrams at all in which case all elements will be orphans. So by all means delete them if they need deleting, but not just because they're orphans.

2333
Automation Interface, Add-Ins and Tools / Re: Model Searches
« on: March 15, 2010, 08:53:46 am »
Try ea_guid...

Code: [Select]
SELECT Supplier, ea_guid as CLASSGUID FROM t_xref WHERE t_xref.Name='Element' AND t_xref.Type='reference' AND t_xref.Client='<Search Term>'

2334
Automation Interface, Add-Ins and Tools / Re: Profiles and diagrams
« on: March 09, 2010, 01:10:49 pm »
You can do it but it's quite involved. You will need to define a custom toolbox - look up Toolbox Profiles in the help file. Then you will need to define a custom diagram type - look up Diagram Profiles in the help. One of the attributes for a custom diagram type is the toolbox to be opened whenever the diagram is opened. You will then need to bundle your toolbox profile, diagram profile and your original profile into a single MDG Technology (Tools>Generate MDG Technology File to launch the wizard). Settings>MDG Technologies>Advanced>Add to point to your technology then restart EA. Begin browsing the help on this page and ask questions if you get stuck!

2335
Automation Interface, Add-Ins and Tools / Re: Tagged Value Multiplicity
« on: February 26, 2010, 11:54:13 am »
Yes, that's the same point that Van made higher up this thread.

At the moment, the only way to constrain the creation of an «eats» dependency so that the client must be a «predator» class and the supplier must be a «prey» class is to write an add-in. [If you decided to do this, you would need to implement the EA_OnPreNewConnector broadcast handler and return false if the constraints weren't met - see help for details].

A possibly simpler way, which doesn't force the user to make the correct connection but only encourages them, is to define quicklinks [again, see help for details]. If your quicklink definitions provide an eats dependency between prey and predator and nothing else, then it's easier for the user to do the right thing than the wrong thing. You can back this method up with a model validation script or add-in.

Well it's almost Friday lunchtime, so: KP ---«eats»--->"Chicken Parma"  8)

2336
Automation Interface, Add-Ins and Tools / Re: Tagged Value Multiplicity
« on: February 26, 2010, 11:05:00 am »
Quote
How does one specify a RefGUIDList on a taggedValue association in a UML Profile? I know how to specify it in the UML Tagged Value Types, but I'd like to duplicate the function in my profile.
I don't think you can do it with the taggedValue association. Instead, give the «stereotype» class an attribute with the same name as the RefGUIDList tagged value type that you have defined.

2337
Automation Interface, Add-Ins and Tools / Re: Tagged Value Multiplicity
« on: February 26, 2010, 11:00:56 am »
Quote
What do you mean by "stereotyped dependency", and how do I do this?
Consider classes named Lion, Antelope and Gnu where Lion has a RefGUIDList tagged value named "eats" which references Antelope and Gnu. An alternative way to model the same thing is to create a dependency relationship from Lion to Antelope and give the dependency the stereotype «eats». Do the same from Lion to Gnu. The stereotype can be any name that has meaning to you, but mustn't be a UML keyword.

2338
Automation Interface, Add-Ins and Tools / Re: Tagged Value Multiplicity
« on: February 24, 2010, 10:48:57 am »
RefGUIDList tagged values should be what you're looking for. If you can't get them to work, please send in a support request - somebody in Support ought to be able to help get you up and running.

However, I wouldn't actually use tagged values to model one:many or many:many relationships - I think creating something like a stereotyped dependency between the elements is much simpler.

2340
Ah sorry, I looked up the wrong event. No, EA_OnPostNewDiagram is new for EA 8.0...

Pages: 1 ... 154 155 [156] 157 158 ... 169