Hello
I noticed some "strange" behavior regarding the naming of modelling elements in the modelling toolkit and also have some questions.
Scenario: I use the existing class "Role" from the LearnPAd library to copy it to create several new specific Roles (e.g. Physician, Nurse). There is a different behavior for the naming if I choose Role as Superclass or the element above it (__S_group__). If I choose Role as Superclass (what I would like to do in order to inherit all relations), all elements are only called "Rolle" in the modelling toolkit and the name when double-clicking it is read-only eventhough when double-clicking the element, the name attribute actually says e.g. Role Acute Physician-23606 (this value can be changed but is not shown in the model). When choosing __S_group__ as superclass, this does not happen and the name in the model is then e.g. Role Acute Physician-23606. But then all relations are not inherited.
For some other elements I was able to do it without a problem but for some elements, this behavior happens. So there seems to be something wrong with "Role" I guess.
How can this be solved, that instead of "Rolle" the actual class name is shown?
For your reference, the code of the class "Role":
GraphRep:
1
2GRAPHREP
3SHADOW off
4
5AVAL sp:"Language"
6IF (sp = "System")
7 IF (_uilang = "de")
8 SET sp:"German"
9 ELSE
10 SET sp:"English"
11 ENDIF
12ENDIF
13
14AVAL col:"fontcolor"
15AVAL set-default:"no" mono:"Monochrome view"
16IF (mono = "yes")
17 SET bMono:1
18ELSE
19 SET bMono:0
20ENDIF
21
22IF (bMono)
23 SET color_lightskyblue:(rgbval("white"))
24 SET col:(rgbval("black"))
25 FILL color:(color_lightskyblue)
26ELSE
27 SET color_lightskyblue:"lightskyblue"
28 SHADOW off
29 CLIP_ELLIPSE rx:.78cm ry:.68cm
30 GRADIENT_RECT x:-.75cm y:-0.75cm w:1.5cm h:1.5cm style:downdiag color1:(rgbval (color_lightskyblue, 1.4)) color2:(rgbval (color_lightskyblue, 0.7))
31 FILL style:null
32 PEN w:0.08cm color:(rgbval (color_lightskyblue, 0.7)) join:miter
33 CLIP_OFF
34ENDIF
35
36ELLIPSE rx:.75cm ry:.65cm
37FONT color:(col)
38IF (sp = "English")
39 ATTR "Name" y:.8cm w:c:2.8cm h:t
40ELSE
41 ATTR "Bezeichnung" y:.8cm w:c:2.8cm h:t
42ENDIF
43
44FONT "Arial" h:32pt color:black
45TEXT "R" y:.1cm w:c h:c
AttrRep:
1NOTEBOOK
2
3#-----------------------
4LANG "en"
5#-----------------------
6CHAPTER "Description"
7ATTR "Name"
8ATTR "Description" lines:5
9ATTR "Comment" lines:5
10ATTR "Referenced Competency Profile"
See also attached a screenshot from the modelling-toolkit.
Also, I would like to change following things:
- I would like to give the elements a default-name, which is not the same as the class name e.g. instead of Role Acute Physician-23606 I just want to name it Acute Physician-23606 (this value can be changed by the user afterwards when double-clicking. How can this be done?
- For a different scenario I would like that the ID of the element is not shown anymore by default in the model and that only 1 of this element can be included in the model. Thus the model is limited to 1 element of this type. How can this be done?
Thanks and best regards
Pascal