Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Guillaume on August 26, 2015, 10:59:27 pm
-
Hi,
I'm using Archimate 2.0 Application Components as Classifiers and Instances. When adding instances on diagrams, the classifier name is not displayed (e.g. "app1" instead of "app1 : AppName").
This is possible with UML components and I think this is due to the Shapescript defined in the Archimate 2.0 UML profile using #Name#.
Is there any way to show the classifier's name for an archimate component?
-
You could "hack" the Archimate 2.0 MDG and change the shapescript yourself.
Shapescripts are stored in the MDG file as zipped, base64 encoded strings.
You can decode/unzip/change shapescript/zip/encode and replace the existing shapescript with your version.
Geert
-
Hey you both. Are those different meetings? One on the 17th and the other on the 18th? ::)
q.
-
I initially decoded the shapescript to identify what was written in Archimate 2.0 UML Profile, however I hadn't thought of updating it in Sparx EA folder.
I replaced the Archimate2.xml file in EA MDGTechnologies folder and it worked :)
It would be interesting to know if Sparx can update the official MDG i.e. in "shape name", replace print("#name#"); with the following:
if(hasproperty("classifier",""))
{
println("#NAME#");
}
else
{
println("#NAME# :#CLASSIFIER#");
}thanks!
-
Hey you both. Are those different meetings? One on the 17th and the other on the 18th? ::)
q.
Yes, the 17th (Paris) is mainly in French, the 18th (Brussels) in English
Some speakers are going to both events so, so now they only have to make one trip.
You know you are very welcome right?
Geert
-
Yes, I know :)
Once the meeting is held in Berlin I'll be there. Traveling is no longer fun for me :(
q.
-
Yes, I know :)
Once the meeting is held in Berlin I'll be there. Traveling is no longer fun for me :(
q.
I'll talk to the guys from LieberLieber and Sparx Systems CE.
If they can do Stuttgart they must be able to do Berlin too right?
Geert
-
I guess so, though Stuttgart is quite a couple of kilometers nearer to Vienna than Berlin. Thanks anyhow :)
q.
-
It would be interesting to know if Sparx can update the official MDG
There's certainly no technical reason we can't. The reason we haven't is because ArchiMate doesn't have a concept of instances or classifiers.
-
You could "hack" the Archimate 2.0 MDG and change the shapescript yourself.
Shapescripts are stored in the MDG file as zipped, base64 encoded strings.
You can decode/unzip/change shapescript/zip/encode and replace the existing shapescript with your version.
Geert
Is it also possible to find the shapescript for a Metaclass e.g. a Note?
-
I'm afraid not.
AFAIK they are hard coded in EA.
Geert