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

Pages: 1 2 3 [4] 5

I'm having two issues with my MDG.

First issue
I combine several profiles to a single MDG and having problem packaging them under the same name. For example, I want to name my MDG to MyMDG and the MDG is created by combining profiles named SystemView and OperationalView.  I have tried to set alias on the profile-package to no avail.

When I create a element from the MDG and open the dialog to apply stereotypes the named showed in the dropdown meny is the name of the profile rather than my name of the MDG.

Second issue
How do I set the note value of stereotypes in the MDG?
In Settings|UML Types I can see how all my stereotypes get a standard value in their notes field: "UML Profile Notes".  


Thank you!

Automation Interface, Add-Ins and Tools / Re: Add seperator in addin menu?
« on: February 14, 2014, 07:13:40 pm »
Many thanks!

Automation Interface, Add-Ins and Tools / Re: Add seperator in addin menu?
« on: February 14, 2014, 01:47:02 am »
Thank you!

I tried with - before but as in "&-". Which reminds me that I don't know why do the other strings begin with &?

I feel silly each time this happens in the forum. When I search for "seperator" nothing turns up.  And I do use the proper search page, and not the right hand field. I missed the option "This post was made in the last... week"  ::)

Thank you again,

Automation Interface, Add-Ins and Tools / Add seperator in addin menu?
« on: February 14, 2014, 12:17:51 am »
How do I add a horizontal seperator in the addin menu?

It's not mentioned in the documentation regarding "EA_GetMenuItems" or "Define Menu Items".



In my MDG I let my stereotype FunctionCall extend Action. I now wish to also set Kind to BehaviorCall (as found in the properties dialog under Advanced).   I see that the metaclass Action has the attribute Kind - but changing that value don't. When I create an instance of the stereotype the Kind-field is empty.

Is it possible to set such properties from the MDG or do I need to do it through an addin?

Also, I reckon it would take an addin to make EA open a elementpicker where the user can choose which Activity to call? (This happens if you add Action (behavior call) from the UML toolbox. )

Thank you for any help!

For the steroetype set the attribute "kind" to type ActionCall and the initial value to "CallBehavior".

Automation Interface, Add-Ins and Tools / Re: How do you organize your MDG?
« on: February 13, 2014, 07:07:39 pm »
I got it!

Thank you for the clarification. The parallell with using stereotypes form other MDG is even logical.  ;D I havn't thought of different profiles that way before.  (I tried a zillion different ways yesterday, and today I relized that I at the end didn't bother creating the full MDG bust using just the UML profile as is, which of course didn't work. Which explains my confusion why I thought it did work and then suddenly didn't.)

Cheers, that solved a heap of headache for me!

Automation Interface, Add-Ins and Tools / Re: How do you organize your MDG?
« on: February 12, 2014, 07:06:04 pm »
KP, To clarify:

When I add a Stereotype from another profile it automatically get the name AnotherProfile::Stereotype. Is that how you mean, or do I create a local stereotype and manually name it AnotherProfile::Stereotype?

I have got the following reply from Simon at support earlier:
Our developers advised that storing the metaclasses elsewhere should not be a problem.  The "Save as Profile" command iterates through stereotype elements on a diagram or in a package, depending on where you call the save from, so it is important that the stereotype elements are in the right place. EA is able to traverse any extension connectors it finds to wherever in the model the target metaclass elements are. You may experience issues however if you define stereotypes which generalize another stereotype from a different package.

But if I understand you correctly it would be allright, if the Anotherprofile::stereotype is connected to its extention in the external profile aswell? As in:
Code: [Select]
LogicalDataModel --generalize --> SystemView::DataModel --Extends-->Metaclasses:Package
A quick test I just did seems to support this, and thus the issue I was having was that I had not included the extension in the external profiles.

I can't get it to work... The only way I manage is by Save UML profile from the diagram.

Automation Interface, Add-Ins and Tools / Re: How do you organize your MDG?
« on: February 12, 2014, 04:02:50 am »
If its a nightmare I better not think about it right now, time to go home for the night. :)

Anyway, a script that save the profiles sounds neat. I didn't think about that.. if you could automatically generate profiles for each diagram I reckon the issue with generalizing between profiles is solved. (Thank god that the MDG generater remember which files to include.)

Is it in the reference/your book how to generate profiles from script?

Thanks for the hints (and heads up).

Automation Interface, Add-Ins and Tools / How do you organize your MDG?
« on: February 12, 2014, 03:22:37 am »

I started developing an MDG last year based on the fairly few and very rudimentary tutorials I found lingering the internet. Well, and a lot of help for here.

Now I wonder, how should you organize your MDG when it grows in size?

I have the following, simplified, set-up:



In total I have around 200 stereotypes sorted in 7 different profiles in the profile package. The reason I have them divided is because of the amount and I felt it would be quite cumbersome to have it all in the same packge. This is though not without drawback. I will return to this later.

For example in the metaclass-profile I have sorted all the metaclasses I use to avoid having duplicates all over the place. The other profiles have each their own purpose and are fairly seperated, but not totally. I also uses several diagrams (1-5) for each profile.

The toolbox is also divided in several profiles matching the profiles the metamodel. At the moment I don't really know why, except to keep it tidy.

When I generate a new MDG version I do a "Save package as UML" in the project browser for each of the profiles (quite tedious if I have changed several, because of the not-so-smart file dialog not rembering the last used name of that profile).

The main problem I have with this setup is:
EA don't fully support connection betweens different profiles when generating UML profiles this way. Extensions are fine, but not generalizations. You can't generalize a stereotype from another profile, unless you create the UML profile from the diagram instead of the profile-package.  With rougly different 20 diagrams I'm really not keen on generating profiles that way, not with the current file dialog forcing me change the name every time (you think it would learn after hundreds of times!  ;) I wish we had some AI in EA... ).

I'm thinking about looking into the possibility to create one massive autogenerated diagram including everything - just to create the needed xml-file for the MDG-generator. Any ideas how to generate such a beast? I guess I could script such a function, if there is no more elegant (e.g. pre-developed) solution.

Any thoughs/comments? How do you do? And do you know of any help/hints for the more advanced MDG developer anywhere (the sparx website isn't really helpful at times)?


Automation Interface, Add-Ins and Tools / Re: Strings in shape script
« on: February 12, 2014, 02:49:10 am »
Allright, thanks.

Automation Interface, Add-Ins and Tools / Strings in shape script
« on: February 12, 2014, 01:42:03 am »

In my profile I have replaced the shape of a stereotype from the native with this shape script:
shape main{      
noshadow = "true";
h_align = "center";

My problem is that the name of an element is normally in bold, and I wonder if it is possible to make the text in shapescript consistent with this (i.e. the text in the script above has normal weight)?

I know that the help file says "You cannot change the font size, type or color of this text".. but it has been wrong before.

Using EA 10.1009.

Thanks for any input!


Thank you both so much for the help!

Case closed. ;)

Ahh! Thank you Uffe for sorting out my mess.

You are absolutely correct that I have mixed things up. It is the ClassifierID I'm after.

But I have a strange thing in my model:

<<Node>> MyNode :MyNodeType
<<OperationalSwimLane>> MyNode: MyNodeType

Note the placement of the colon ( : ). In traceability in both cases it mention a "Instance of" relationship. ClassifierID works on the second case, but not the first. In the first case the ClassifierID returns 0. Something is amiss?

 Any ideas?

Thanks for the input! Alas, I can't find the post you refered to. I think I have read all post by Geert, aswell as all post mentioning "namespace" or "type" with no luck.

I wonder if I have mixed up the names of things. Is it even called namespace what I'm trying to get at?

To clarify:
I have an element (MyNode) that is an instance of another element (MyNodeType). In the project browser it looks like I posted above: <<Node>>MyNode :MyNodeType.

In the properties window of the element I can see the value (MyNodeType) in the "Type"-field under the Property tab. But my script returns only "Part" when I ask for MyNode.Type.

Pages: 1 2 3 [4] 5