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 4
I started to play around with this and it seems that the problem is when you have a a profile element with the same name as the toolbox.

Code: [Select]
<Stereotype name="NNN">

<Property name="toolbox" value="NNN"/>

<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>

It also worked to change the name property as you said.


I have created an MDG Technology including custom stereotypes, diagram and toolbox, and imported this technology in a project. When creating a new diagram, I can select my custom diagram type, but when I open the diagram, the custom toolbox is not opened. I have to select it manually (so it is there and working).

I checked the xml file for the MDG:
Code: [Select]
<Property name="toolbox" value="NNN"/>
<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>

It seems to be correct, but it is not working. Any ideas why?

Thanks for the information!


When you create a profile in a MDG technology, you can specify which tags should be created for a connector. Is it possible to have different tags dependent on the source and target element stereotypes (without defining two different connectors)?

For example:
If the source element has stereotype 'a' and target element has stereotype 'b', a tag with name 'My tag' should be added to the connector. But if the target element has stereotype 'c', the tag 'My other tag' should be added to the connector.

Or am I required to create an add-in for this?

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!  :)

Pages: [1] 2 3 4