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

Pages: [1] 2 3
Thanks, now I understand!

I would prefer to not do this for all elements in the diagram, but only for this element. But I cannot figure out how to do this in a shape script. Or do you mean that I need to create the shape from scratch? I thought about using DrawNativeShape and change it somehow. But perhaps that does not work?


I am creating an UML profile, extending the Component meta class to add a few tagged values, and set it to show the tagged values in the diagram (_Tag = 1). However, when I do this, the stereotype text is also shown (in addition to the icon). Can I change this behavior so that it acts the same as the original Component, only showing the icon and not the stereotype text?

Thanks for the information.

Too bad there is no easier way to do it.

I have a fragment which is a custom SQL query returning the note of a specific tagged value of the element. Above this note text is a heading. I would like that if the note is empty, or if the tag does not exists, the heading is removed because there will be no text beneath the heading. Is this possible?

I have tried with Bookmark.Start and Bookmark.End which works in other situations, but could not get it to work in this case.

Thanks for the options!

The Custom Compartment with RelatedElement is also interesting.

This is the situation:

We have information flow diagrams showing our applications. We have added tagged values for ID, alias, lifecycle, status and other things related to the application. Everyone needs to see the ID and alias so we know that we are all talking about the same application (different parts of the organisation seems to use different names). The other tags are mostly targeting the more advanced group and is not of interest to the "general public"; hence I would like to hide them in some diagrams. Using tags is also a convenient way to make things searchable (i.e. show me all applications that are under development).

Right now I am trying to find out the best way to do this. We can still change the way we work. Is custom compartments a better way?

I could use the diagram stereotype to show different tagged values. This shape script will go into a mdg profile later, so it may be better to use Type or MdgType.


We have an element type with several tagged values. Some of them are relevant to one group of people, and others are relevant to another group. Unfortunately we cannot select which tagged values should be visible in a certain diagram.

So to solve atleast some of the problem, I would like to create a shape script that always shows the tags that are relevant for all people, and if someone creating a diagram want to show all tagged values, that is up to them.

I thought that one option is to use "shape label" with SetOrigin = SW.

Code: [Select]
shape label {
   SetOrigin("SW", 5, 35);

This makes it possible to hide these tagged values if someone wants to show all tagged values (instead of having duplicate information). The problem is however that the default width of the label is too short so the user needs to immediately change the width. The maximum width of the label may also be too short, which makes the text wrap.

Is there another (better) way to do this?

The requirement is essentially:
  • Show the value of certain tagged values, somewhere inside the element, each on its own line.
  • Don't wrap the text
  • Preferable (but not a requirement), hide this if all tagged values are shown on the element

General Board / Re: Labels moving around by themself
« on: October 25, 2017, 09:27:49 pm »
I found the post in the forum, but I don't think they are related.

I have to keep an eye on the diagrams and see if I cant find any pattern that causes the change.

General Board / Labels moving around by themself
« on: October 24, 2017, 11:00:26 pm »
I have a very annoying problem when working with information flow diagrams; the connector labels are moving by themself!

When I create the diagram I position the connector labels (the one showing the conveyed information items and the stereotype label). Everything looks fine, I save, store as image, and close the diagram. At some other point I open the diagram again, and the labels are somewhere else, meaning I have to spend time positioning them again (and again the next time I open the diagram).

I have 30+ information flow diagrams, and when we add/remove a conveyed item, all diagrams showing this connector need to be re-published so they are consistent. This means...I have to open all diagrams and re-position the labels and save to image manually.

The labels also change size. If we have 10 conveyed items on a connector we cannot always have them all on one line, so we increase the height. When the diagrams is opened at a later point, the size of the label can be something else (but not all on one line).

This does not happen all the time when opening the diagram. Sometimes the labels stay where they should, and sometimes they move. I have not been able to find out the cause. "It just happens".

I emailed Sparx about this, but haven't got any answer so I wonder if someone else have experienced this and have a solution. This is very time consuming.

Using EA 13.0.1309.

General Board / Re: Diagram filter and missing tag
« on: August 24, 2017, 05:44:59 pm »
I did so!  :)

General Board / Diagram filter and missing tag
« on: August 23, 2017, 05:49:55 pm »

When you create a diagram filter, you can filter on a specific tag and its value. Is it possible to also filter on elements that are missing a certain tag?

For example:
I want in my diagram to show:
- All elements with the tag XYZ with a value of abc
- All elements missing the tag XYZ

So essentially, I want to show all elements in the diagram, except for those with a certain tag with a certain value.


I did not experience any big issues in EA 12.

I just discovered that you can "work-around" the bug(?) in EA 13 by first adjusting the connector the way you want it (while line style is custom), open its properties, change the line style to "Orthogonal - Rounded" and close the Properties dialog box. It will look strange in the diagram, but just save it anyway, close the diagram and open it again. It now looks "okay".

I hope they (re-)implement this feature. If all other connectors are rounded in the class diagram, people wonder if there is a special meaning why these connectors are not rounded.


In EA 12 you could have rounded corners for relationships to itself. You just changed the line style to "Orthogonal rounded". This does not seem to work in EA 13 and you are forced to use a "Custom line", which does not have rounded corners. Since all other connectors in our diagrams are rounded, it looks a bit odd.

Is this "by-design" in EA 13, or a bug?

Uml Process / Re: Realize information flow, how does it work?
« on: April 01, 2017, 01:25:57 am »
Thanks for the explanation!

That might give me some new insights, on monday.  :-)

Pages: [1] 2 3