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.


Topics - NewToSparxEA

Pages: [1]
1
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");
       }
}

Pages: [1]