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

Pages: [1]
1
Suggestions and Requests / Re: Bookmarking or Favorites Improvement
« on: March 08, 2013, 09:53:02 pm »
Yes, I know about this feature. But
  • can I set several Bookmarks.
  • And where can I find them as a list.


tria1312

2
Suggestions and Requests / Bookmarking or Favorites Improvement
« on: March 08, 2013, 06:29:01 pm »
Hi,

I would like to have an intuitive usable bookmarking system like it is in Firefox. I thought, I found it as I discovered the favorites view. But:
  • I wasn't able to add any element to the favorites folder in the view using an intuitive way and
  • as I read the help I was suprised that only elements and NO diagramms could be added


Best Regards
tria1312

3
General Board / Changing "Entry Point" in Scenarios of a UseCase
« on: February 14, 2012, 11:26:49 pm »
Hi,

I have created several UseCases and defined Constraints and Scenarios within them. I have defined some "alternative und exception pathes". But now I want to change the entry point of an exception path to another step within the basic path.
Does anyone know how I get this issue done?


Best Regards
tria1312

4
Hi,

I got an Example from the JScripts how to create a Search, but is there a possibility to create a Search with JavaScript. If yes, what is a stub for the search or does anyone has an example?


Best Regards
tria1312


By the Way: The JScript is not running because of an error: ActiveXObject is not defined --> Do I need ActiveXObject also in JavaScript?

5
Hi,

so I tried to change my code to use the objects like this:
Code: [Select]
function DumpDiagrams(indent, thePackage)
{
      // Cast thePackage to EA.Package so we get intellisense
      var currentPackage as EA.Package;
      currentPackage = thePackage;
      
      // Iterate through all diagrams in the current package
      var diagramEnumerator = new Enumerator( currentPackage.Diagrams );
      while ( !diagramEnumerator.atEnd() )
      {
            var currentDiagram as EA.Diagram;
            currentDiagram = diagramEnumerator.item();
            var diagramObjects as EA.Collection;
            diagramObjects = currentDiagram.DiagramObjects;
            
            // Add the current package's name to the list
            Session.Output(indent + "::" + currentDiagram.Name +
                  " (DiagramID = " + currentDiagram.DiagramID + ")" + " Elements on Diagram = " + currentDiagram.DiagramObjects.Count);
                        
            // Iterate through all elements and add them to the list
            var elementEnumerator = new Enumerator(currentDiagram.DiagramObjects);
            while(!elementEnumerator.atEnd())
            {
                  var eaElement as EA.Element;
                  eaElement = Repository.GetElementByID(elementEnumerator.item().ElementID);
                  
                  Session.Output(indent + "::" + eaElement.Name +
                        " (" + eaElement.Type +
                        ", ID=" + eaElement.ElementID + ")");
                  
                  elementEnumerator.moveNext();
            }

            diagramEnumerator.moveNext();
      }
}

THX!  :)


Best regards
tria1312


6
Hi all,

I want to get details of the element found on a diagram. These elements are not all in the same package.

With the code below I am able to get the list of objects which are located on the diagram. The amount and the Element-IDs of the objects are OK, but I can't get the name and the type of them.
What is the trick to get also these information?


Best regards
tria1312
 

Code: [Select]
function DumpDiagrams(indent, thePackage)
{
      // Cast thePackage to EA.Package so we get intellisense
      var currentPackage as EA.Package;
      currentPackage = thePackage;
      
      // Iterate through all diagrams in the current package
      var diagramEnumerator = new Enumerator( currentPackage.Diagrams );
      while ( !diagramEnumerator.atEnd() )
      {
            var currentDiagram as EA.Diagram;
            currentDiagram = diagramEnumerator.item();
            var diagramObjects as EA.Collection;
            diagramObjects = currentDiagram.DiagramObjects;
            
            // Add the current package's name to the list
            Session.Output(indent + "::" + currentDiagram.Name +
                  " (DiagramID = " + currentDiagram.DiagramID + ")" + " Elements on Diagram = " + currentDiagram.DiagramObjects.Count);
            
            // Iterate through all elements and add them to the list
            var elementEnumerator = new Enumerator(currentDiagram.DiagramObjects);
            while(!elementEnumerator.atEnd())
            {
                  var currentElement as EA.Element;
                  currentElement = elementEnumerator.item();
                  
                  Session.Output(indent + "::" + currentElement.Name +
                        " (" + currentElement.Type +
                        ", ID=" + currentElement.ElementID + ")");
                  
                  elementEnumerator.moveNext();
            }

            diagramEnumerator.moveNext();
      }
}


Pages: [1]