Book a Demo

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

Pages: [1]
1
Uml Process / Re: Shape scripts and profiles incompatible?
« on: June 26, 2012, 08:12:07 pm »
Thanks. Now I have got it working.
It is just a pity that you cannot set font color and style in the shape script.

2
Uml Process / Re: Shape scripts and profiles incompatible?
« on: June 22, 2012, 10:34:54 pm »
Thanks for the reply, but can you elaborate that?
For Shape Script/Appearance definition I do only know the menu "Settings -> UML Types". And there: Select the required stereotype and set "Shape Script" below heading 'Override Appearance'.
Is there another place to do that?

When saving the profile that I then have to import into the resources, I have "Color and Appearance" included.
I guess unselecting that same point upon import would fix my problem but it feels, like that is not the way it is intended, since it would also affect other aspects that I might want to import.

Regards
Michael

3
Uml Process / Shape scripts and profiles incompatible?
« on: June 22, 2012, 09:57:37 pm »
Hello

I have a GUIElement metaclass extended by a stereotype TextArea. The TextArea has an enum value attached (e.g. DataLine_1, DataLine_2). Now I have a "screen" set up with labels using these stereotypes. Since I want a different layout, I changed the appearance of my TextArea stereotype using a shape script (transparent and print "#name#").

But if I add another element to the enum definition I have to reimport my profile ... and my shape script is gone! Why is that?
Is there some way to avoid this?
I actually do not like the idea to have to redefine all shape scripts or other settings each time I have to update the profile.

4
Uml Process / Re: How to actually apply a shape script?
« on: June 22, 2012, 09:10:04 pm »
Thanks for the advice. It is now working, but I cannot say for sure what made the difference.
Maybe it is the fact that at first I tried to change the base class' properties and now I work with a new stereotype and an extended metaclass.

Just one thing remains: Is it true that I cannot change the text color in the shape script, but I can change it in individual elements? I am using a label stereotyped as TextArea, which I defined to extend the GUIElement class. I now have the TextArea being transparent by default and showing the label's name. Unfortunately my background color is black, which does not go too well with black as default text color.  :(

5
Uml Process / How to actually apply a shape script?
« on: June 07, 2012, 11:38:37 pm »
Hello all
I was trying to use a shape script for a stereotype. I went through all the steps given in the online help. But it does not work.
I have a stereotype defined, I can see a preview of my shape (black background and a line of text containing the element's name) and I can select the stereotype for the diagram element. The stereotype is then apparently correctly selected, stereotype and name are shown in the element in the diagram, but it still looks like the base class.
So what do I have to do, to have the shape script actually override the default appearance?

Also, I can fill a "screen" within a user interface diagram with a color, but the same does not work for any other element put insinde the screen. Is that intended? Or is my project broken?

Greetings
Michael

6
Thanks. Based on your answer I could solve this and even more.

For anyone seeing this later: There is a bit more to it than revealed here.
1) It is important not to omit the ";" at the end of "ImageID=<num>;"
2) It is necessary to call the diagram object method "update" after setting the style.

Now, taking a look at the XMI I found the style content that changes the font properties that are not documented in the style setting help page. Apparently, providing a full set of values in the style definition like
diagramObject.Style = "BCol=0;BFol=16777215;font=Arial;fontsz=100;bold=1;pitch=34;charset=0;ul=0;italic=0;";
lets you change whatever you can change within the diagram by the font definition. However, this does not work if e.g. the font=Arial; definition is missing.

7
Hi

I am using screen templates (in user interface diagrams) from which selected parameters are copied to other screens depending on element names and tagged values.
Regarding element size and position this already works well, but I would also like to copy appearances that are alternate images.
Is that possible at all? And if yes, how?
Thanks

Pages: [1]