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 - Simon M

Pages: 1 ... 412 413 [414] 415 416 ... 424
Just a question.

Is there a reason why you didn't list over the DiagramLinks instead of the DiagramObjects?  It seems that it would be much easier.

Code: [Select]
foreach(EA.Diagram diagram in allDiagramList)
 if(diagram.Type == "Sequence")
    // Enumerate each connector in diagram and see  
    // whether the method entered matches
    Boolean diagramAdded = false;

    foreach(EA.DiagramLink diagramLink in diagram.DiagramLinks)
         EA.Connector connector = repository.GetConnectorByID(diagramLink.ConnectorID)
         // Now check if it matches the operation as you did before.

Automation Interface, Add-Ins and Tools / Re: Generate Multiple Files
« on: October 19, 2006, 03:16:56 pm »
It is, but you'll need to call an addin from the templates to look up the second class.  Additionally EA doesn't support reversible transformations so it won't synchronize with your original classes.

You could still do it though.  You would just need to add an entry into the t_xref table that matches the ones created by the TRANSFORM_REFERENCE macro.

Automation Interface, Add-Ins and Tools / Re: Generate Multiple Files
« on: October 17, 2006, 03:02:11 pm »
It currently can't be done by the code templates directly.

Something that you could consider that may help you is using a transformation to separate the single class into multiple classes.  You'd have in your class template something like the following.

Code: [Select]
%list="Attribute" @separator="\n" attStereotype!="cfg"%
%list="Operation" @separator="\n" opStereotype!="cfg"%

%list="Attribute" @separator="\n" attStereotype=="cfg"%
%list="Operation" @separator="\n" opStereotype=="cfg"%

This way when you generate the two classes that result from this transformation you get the files that you want.

My point is that a Requirement element is not a EA.Requirement.  Any attempt to cast it to one is guaranteed to fail.  IMO that answers the last question that was asked.

To access the external requirements of an element through the automation interface you'll need to list over the EA.Element.Connectors.

You'll then need to use ClientID or SupplierID to load the relevant EA.Element (with Repository.GetElementByID()).

The EA.Requirement class is not a subclass of the EA.Element class.  It is instead the class for the internal requirements of an EA.Element.

You should be able to anything you need to through the EA.Element object.

Automation Interface, Add-Ins and Tools / Re: Empty line at end of file
« on: October 17, 2006, 03:05:19 pm »
Hi Wolfgang,

We have had a previous report of this problem, it should be corrected for our next patch release.

Automation Interface, Add-Ins and Tools / Re: External Requirment
« on: October 16, 2006, 03:24:06 pm »
Take the Elements collection from a package and use AddNew("My Requirement Type", "Requirement").

No, it's only the one checkbox at the moment.

The prompt is according to an option at Tools | Options | Source Code Engineering | Prompt when synchronizing (reversing).

The ExtraOptions parameter is future proofing so we don't need to change the interface if a new option needs to be added.

Actually, 798 added what you want.

Look at right down the bottom of the page.

Automation Interface, Add-Ins and Tools / Re: Link Creation in EA
« on: September 14, 2006, 03:04:30 pm »
As Thomas said, there are lots of ways to create links in EA.

As a start, try the following.
  • Add both objects to a diagram
  • Select one
  • Drag the arrow on the top right of the selected object to the other.
  • EA will then allow you to select what type of link should be created.

Automation Interface, Add-Ins and Tools / Re: Add-in Menu Problem
« on: September 10, 2006, 02:56:54 pm »
The MenuLocation parameter is passed in to specify where the menu is being created.

Try checking this variable and calling different functions depending on the value.

Currently it can't be configured, but we'll fix the problem in a coming build.

Automation Interface, Add-Ins and Tools / Re: Trouble on Video Resolution
« on: September 05, 2006, 05:28:15 pm »
Or, yet another solution.  Don't show all of the folders in the toolbox.  Either change to a different perspective (dropdown at the top of the toolbox, see or change the visible folders in Tools | Options | UML Element Toolbox. (

Automation Interface, Add-Ins and Tools / Re: Database Foreign Key Transform
« on: September 05, 2006, 03:05:51 pm »
What changed was that the parser for what you generate with the templates will now accept a name and use to name the corresponding operation.

Pages: 1 ... 412 413 [414] 415 416 ... 424