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 - MeryemAdb

Pages: 1 [2]
16
Hello,

I am trying to add my own validation rules from my add-in. However, I would also like to be able to select the rules to use individually and not on a category basis, and I have my own window to display the errors.

So I intend to catch the events EA_OnStartValidation and EA_OnEndValidation and only fire my code if my own category (I only define one category at EA level) is in the parameter array.  The thing is, no matter what categories I select in the model validation configuration, the parameter array contains my custom category, and my category only.

Is it the expected behaviour? In that case, how can I know that my category has been selected?

By the way, is there a way to configure the validation from an add-in? I mean that if the user clicks in one of my custom menus, the validation will be launched only on my category of rules.

17
Automation Interface, Add-Ins and Tools / Re: MDG Diagram Profiles
« on: August 22, 2014, 11:00:24 pm »
That seems a great idea. I don't have time to test it right away, but I will definitely try it and tell you if it works.

18
Automation Interface, Add-Ins and Tools / MDG Diagram Profiles
« on: August 22, 2014, 10:32:35 pm »
I have created diagram profiles in a MDG, but I'd like to rename some diagrams. Is it possible to also modify my existing diagrams so that they have the renamed MetaType?

I have created a simple AddIn to change the stereotypes of connectors and elements, so I could use it to upgrade the diagrams but diagrams MetaType are read-only. Is there an alternate way?

19
Automation Interface, Add-Ins and Tools / Document profile elements
« on: August 12, 2014, 11:24:20 pm »
Hello,

I have a MDG with custom stereotypes that I call from an add-in. I'd like to know if it is possible to document those stereotypes, by  (ideally) replacing the help content displayed when the user right clicks on my element and select "UML help".

If this is not possible, I have an add-in, so I can add a menu item "Help on selected element". I would like to be able to open a help tab (similar to the result of "EASystem::ShowDoc" from a learning center page). I can use a web browser control to show my documentation as HTML, but the links to EA guide do not seem to work as it is Microsoft compiled HTML.

Any ideas on how to achieve my goal of documenting my stereotypes while having links to EA inner documentation ?

Thanks in advance.


20
It occured to me that I have complete control over my profile, so I can define my classes as not composite in the profile and then make them composite and create the adequate diagrams in my post-treatment.

So, problem avoided !

Thanks a lot anyways.

21
Hello,

I have a UML profile with some elements that have a composite diagram. When those elements are created (in EA_OnPostNewElement), I apply a post-treatment to rename the composite diagram and to add the element at the center of the diagram.

This works well unless I am creating the element through the quick linker. In that case, when my treatment is called, the composite diagram has not been created yet (apparently). But after I create and rename the composite diagram a default composite diagram is created. I think it is created when I click OK on the Properties window.

Is there a way to either switch off the creation of the "default" composite diagram in my post-treatment or to postpone this treatment until after the diagram is created?

22
I'd like to do something that seems quite simple in theory, except I do not know how to do it: how can I select an element in the project brw
owser?

In short, I want to validate a model, and I'd like to know if it is possible to lead the user to the class where the problem occurs.

I am using EA version 10.1008 Corporate.

23
Automation Interface, Add-Ins and Tools / Re: Cannot import MDG XML
« on: July 09, 2014, 01:09:22 am »
As I understand it, the MDG XML file is different from the the XML file you get when you save your profile. But it can be created quite easily.

You can create a MDG xml file by selecting "Tools" then "Generate MDG Technology File...".

If you just want to try it, you can choose to not use a MTS file (MTS will store everything you enter later) and enter the Technology, ID, Version, Filename (do not overwrite your profile file) and Notes. In the next window select "Profiles" only, then select the UML profile you saved as XML. And at the end, the MDG file will be created at the path your entered in Filename, and you can the import this file.

It is explained here:
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/standard_uml_models/creatingmdgtechnologies.html

Hope it helps.

24
Hello,

In my MDG, I have defined custom activity diagrams with stereotyped elements that are either of type Activity or Action.

What I'd like to do is create my own version of the quick linker for all elements in those diagrams (because the default one offers ObjectFlow between two Actions and I do not want my users to have this possibility). But I'd rather not define all possible links between Actions/Merge/Fork/... because that is a lot of possibilities.

So I'd like to know if there is a parent element from which all elements of an activity diagram (in my case that would be Activity, Action, Synchronization, Decision, ActivityInitial, ActivityFinal, FlowFinal, Receive and Event) derive and that can be used in the quick linker as a shortcut.

 Additionnaly, if I need define everything, I do not see an element type corresponding to ActivityFinal, FlowFinal, Event and a connector type corresponding to InterruptFlow in Quick Linker documentation. Is that really so? Or is there something that I am missing ?

Thanks a lot, Meryem

Edit :  I use EA version 10.0.1008 Corporate Edition

25
Automation Interface, Add-Ins and Tools / EA_OnPreDropFromTree
« on: April 16, 2014, 07:05:56 pm »
Hello,

I am using EA_OnPreDropFromTree event to create a new element and I'd like to use its EventProperty to position this element where the user dropped the element from the tree.

However, I have the impression that the PositionY given by the EventProperty is relative to the displayed top-left corner of the diagram. For instance if I scroll down before dropping the element, its position will be off and it will be higher than what I expected.

Is there a way to have an absolute PositionY?
If not, is there a way to know, the absolute position of the displayed top-left corner of the current diagram?
Or is there a way to specify a relative position for a DiagramObject? I tried to specify the location with "l=.;r=.;t=.;b=.;" when creating the object, and I tried to specify its left, right, top and bottom values, but it did not work.

I am developping  an add-in using EA 10.0.1008.

Thanks in advance.

Pages: 1 [2]