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 - Tom.Hopper

Pages: [1]
1
General Board / Automating Roadmap Diagrams
« on: August 18, 2016, 12:24:54 am »
I am creating a technology roadmap which shows all of our HW and SW products. At the moment (unless stated otherwise) this process is very manual which becomes very difficult if and when a set of products need removing, updating or adding.
All of my technology products are stored in Sparx EA, so is there any way I can automate updating/creating a technology roadmap?

2
Bugs and Issues / Re: Issues with Add-Ins
« on: July 14, 2016, 09:02:08 pm »
Hey guys,

Extremely long delay on this. Ok so I have 3 of the following functions within my c# add-in along with a EA_Connect() and EA_Disconnect() functions:
 
public string Shapescript_EndOfSupportDate(EA.Repository repository, string eaGuid, object theParams)
        {
            string return_value = "";
            EA.Element element = repository.GetElementByGuid(eaGuid);

            EA.TaggedValue EndOfSupportDate = (EA.TaggedValue)element.TaggedValues.GetByName("EndOfSupportDate");
            if (EndOfSupportDate != null)
            {
                try
                {
                    DateTime dt = DateTime.Parse(EndOfSupportDate.Value);
                    DateTime today = DateTime.Today;

                    if (dt.CompareTo(today.AddYears(1)) <= 0)
                        return_value = "red";
                    else if (dt.CompareTo(today.AddYears(2)) <= 0)
                        return_value = "amber";
                    else
                        return_value = "green";
                }
                catch (Exception e)
                {
                    return_value = "exception";
                }
            }
            return return_value;
        }

As I mentioned, we have 3 of these (including the one above). The issue we have is apparent, the addin (or internal shapescript code) continues to fill the colour in on the shapes to the point it makes the diagrams unusable.

I cant see it being the Shapescript code having the issue, but the below is a snippet of the code to call the add in

decoration endofSupport
{
   orientation="N";
   if(hasProperty("Type","Class")){
            if (HasProperty("#ADDIN:RAG_Stereotypes, Shapescript_EndOfSupportDate#", "red"))
              {
                     setpencolor (0,0,0);  //the border colour
                     SetFillColor(225,0,0);
              }
              else if (HasProperty("#ADDIN:RAG_Stereotypes, Shapescript_EndOfSupportDate#", "green"))
              {
                     setpencolor (0,0,0);  //the border colour
                     SetFillColor(0,255,0);
              }
              else if (HasProperty("#ADDIN:RAG_Stereotypes, Shapescript_EndOfSupportDate#", "amber"))
              {
                     setpencolor (0,0,0);  //the border colour
                     SetFillColor(255,215,0);
              }
              else
              {
                     setpencolor (0,0,0);  //the border colour
                     SetFillColor(0,0,255);
           }
          rectangle(65,45,130,125); //left, top, right,bottom
      }
   else{
      
   }
}

3
General Board / Re: Options to read an eap file on a mobile device
« on: June 22, 2016, 01:05:34 am »
Sorry, both Iphone/iPad and Android

4
General Board / Options to read an eap file on a mobile device
« on: June 22, 2016, 12:41:20 am »
Is there a recommended mobile application to open an .eap file so people can read their models on a mobile device offline?

5
Bugs and Issues / Issues with Add-Ins
« on: April 21, 2016, 11:55:18 pm »
I have created an Add-In to go into Sparx to change the colours of a ShapeScript box depending on an inputted Tagged Value date.
When I install the Add-in and need to use a diagram with the elements included, it tends to seriously slow Sparx EA down to the point it is unsuable.

Could there be something I am meant to be including into the Add-In code that prevents this?

Pages: [1]