1
Automation Interface, Add-Ins and Tools / Modify Archimate3 MDG to display tagged values
« on: April 10, 2021, 11:50:21 am »
Hi, I am attempting to modify Archimate3 MDG to display tagged values but so far I have not been successful. I have done the following so far
1) Followed the instructions in https://sparxsystems.com/resources/user-guides/15.2/modeling/mdg-technologies.pdf to create a profile, using a copy of archimate3.xml MDG file from C:\Program Files...\MDGTechnologies folder, created the stereotype helper and added the following shapescript to display the tagged value.
2) I then exported the profile as a xml and combined it manually with the copy of archimate.xml since I couldn't figure out how to merge the profile.xml I created with the archimate3.xml through sparx.
3) Finally I imported the updated archimate.xml file into a new model and created a new diagram with the archimate element but the tag value didn't come and and it wasn't displayed. Even the line that I coded into the shapescript didn't come through. I am not able to figure out what step I am missing.
shape main
{
DrawParentShape();
MoveTo(0,0);
LineTo(100,100);
if (HasTag("Database"))
{
Println ("#TAG:Database main");
}
}
//Shape ChildElement adds Child Compartments to the parent.
shape ChildElement
{
if (HasTag("Database"))
{
SetCompartmentName("Tags");
Println ("#TAG:Database#");
Println ("Database tag compartment");
}
}
1) Followed the instructions in https://sparxsystems.com/resources/user-guides/15.2/modeling/mdg-technologies.pdf to create a profile, using a copy of archimate3.xml MDG file from C:\Program Files...\MDGTechnologies folder, created the stereotype helper and added the following shapescript to display the tagged value.
2) I then exported the profile as a xml and combined it manually with the copy of archimate.xml since I couldn't figure out how to merge the profile.xml I created with the archimate3.xml through sparx.
3) Finally I imported the updated archimate.xml file into a new model and created a new diagram with the archimate element but the tag value didn't come and and it wasn't displayed. Even the line that I coded into the shapescript didn't come through. I am not able to figure out what step I am missing.
shape main
{
DrawParentShape();
MoveTo(0,0);
LineTo(100,100);
if (HasTag("Database"))
{
Println ("#TAG:Database main");
}
}
//Shape ChildElement adds Child Compartments to the parent.
shape ChildElement
{
if (HasTag("Database"))
{
SetCompartmentName("Tags");
Println ("#TAG:Database#");
Println ("Database tag compartment");
}
}