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 - pgoes

Pages: [1]
1
General Board / Relation matrix using relations stereotype
« on: August 20, 2020, 11:42:42 pm »
Hi all,

I'm trying to use the relationshipmatrix to show and edit the relations between requirements and blocks in SysML 1.5.
Between the requirement and the blocks is a dependency relation with a stereotype of SysML1.5:Satisfy.

In the relationship matrix I select the requirements as source and the blocks as Target (block is subtype of class).
As Link type I select dependency.

I see the satisfy relations, so voor showing the relations the matrix is useable.
BUT when I add a new relation, the new created releation is of type normal dependency and not a dependency with stereotype of SysML1.5:Satisfy.


Herefore the relationshipmatrix is not usable to quickly add mass numbers of requirements to blocks using the matrix.

Is there a way to setup the relationshipmatrix so the newly created relation has the correct stereotype (in my case SysML1.5:Satisfy)?

2
Suggestions and Requests / submenu's in diagram scripts context menu
« on: February 16, 2017, 02:29:42 am »
I would like to see in a next version of EA submenu's in the scripts context menu.

If I have now 3 diagram maps with diagram scripts the script menu is one long list with scripts.
It would be nice if it could be:

Scripts
      |
      |-- find scripts
      |        |
      |        |- findscript 1
      |        |- findscript 2
      |
      |--  Creation scripts
      |        |
      |        |- creationscript 1
      |        |- creationscript 2

3
Thanks Geert,

in scripting inside EA there is no intellicense available and the documentation on the site of EA contains an mentions clasifiedGUID.

http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/swimlane.html

now it works correct.

peter.


4
Automation Interface, Add-Ins and Tools / get classifierGUID of swimlane.
« on: October 24, 2016, 07:41:41 pm »
Hi all,

i'm try-ing to get the classifierGUID of an element related to a swimlane, but the API always returns 'Undifined' Can one of you tell me what goes wrong or is this a bug in EA.

Script:

   var currentDiagram as EA.Diagram;
   currentDiagram = Repository.GetCurrentDiagram();

   if ( currentDiagram != null )
   {
      //##################### do diagram things

         if (currentDiagram.SwimlaneDef != null)
         {
            Session.Output("Simlane def is not null");

         }
         
         Session.Output("Number of swimlanes = " +  currentDiagram.SwimlaneDef.Swimlanes.count);
         for (i = 0; i < currentDiagram.SwimlaneDef.Swimlanes.count; i++)
         {
            CurrentSwimelane = currentDiagram.SwimlaneDef.Swimlanes.Items(i);
            Session.Output("Properties Swimlane " + i);
            Session.Output("--------------------------");
            Session.Output("Name : " + CurrentSwimelane.Title);
            Session.Output("Classified GUID : " + CurrentSwimelane.ClassifiedGUID); // this returns always Undefined.
            ClassifierObject = Repository.GetElementByGuid(CurrentSwimelane.ClassifiedGUID);
            if (ClassifierObject != null)
            {
               Session.Output( "Name of Classifier :" + ClassifierObject.Name);
            }
            else
            {
               Session.Output( "classifier object not defined. :");               
            }
            Session.Output("Width : " + CurrentSwimelane.Width);
            Session.Output("" );
            
         }
      }
   }

Thanks in advance,

peter.

Pages: [1]