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 - Helmut Ortmann

Pages: 1 ... 57 58 [59] 60 61 62

if the DOORS MDG don't creates diagrams as part of the import you may write an Addin to visualize the requirements in a diagram for each package.

Kind regards,


Hello Bello,

if you want to access EA via API from RTC you can do this. EA has a COM interface which you can access by a lot of programming languages like:
  • C#
  • Pearl
  • Visual Basic for .net
  • Excel, Word,.. (VB for application)
  • etc.

This interface is well documented and there are a lot of examples available.


Hello Bello,

integration with other tools isn't that simple. In theory there is a standardized exchange format. It's called XMI. Additionally some tool suppliers have a special import features for other tools.

To your question:
EA has three powerful mechanism to do things that are not part of the tool.
- Addin (your language like C#, VB, Pearl,..)
- Scripts (more for fast solutions)

With Addins and the possibility to access the underlying database you can do almost everything.

Good sources to get started are:
- Online help (with examples)
- Example scripts in the EA scripting view
- eBook ScriptingEA from Thomas Kilian
- Geert Bellekens Tutorial (my First Addin in 10 Minutes, in EA Community))

What is the best answer to you problem? You have to give more information.


Automation Interface, Add-Ins and Tools / Re: Changing font size
« on: July 12, 2013, 04:49:12 am »
Hi Fabio,

interesting question. Also how to manipulate the text by html tags.

I just tried:
- Formatting the note by EA means (Size, Color,..)
- Visualize the note content by free addin EnArSpy (LieberLieber)
- SQL would also do

The formatting is coded by html tags. But there is also somewhere a flag to switch on the interpretation of html code.

I propose:
- Make a new *.eap file
- Make a class and a note (class note) with formatting by EA means
- Make a class and a note (class note) with the same text and without formatting
- select note As MyNote,* from t_object  (as search)

Hopefully you see the differences and the way interpretation html is switched on

May be another of the active community guys know a solution.

If you discover a solution I would be happy if you tell about your achievement.

It's a bit of try and error or waiting for someone who knows the solution.

Good luck and thanks,


Hi Fabio,

the following snippet shows you how to add a note, connect to an element and visualize the note of the element.
Code: [Select]
                       EA.Element elNote = null;
                           elNote = (EA.Element)pkg.Elements.AddNew("", "Note");
                       catch { break; }

                       // add element to diagram
                       // "l=200;r=400;t=200;b=600;"

                       // get the position of the Element
                       EA.DiagramObject diaObj = null;
                       foreach (EA.DiagramObject dObj in dia.DiagramObjects) {
                           if (dObj.ElementID == el.ElementID)
                               diaObj = dObj;
                          int left = diaObj.left + 2*(diaObj.right - diaObj.left);
                       int right = diaObj.right + 2 * (diaObj.right - diaObj.left);

                       string position = "l=" + left.ToString() +";r=" + right.ToString() + ";t=" + + ";b=" + diaObj.bottom.ToString() + ";";
                       EA.DiagramObject diaObject = (EA.DiagramObject)dia.DiagramObjects.AddNew(position, "");
                       diaObject.ElementID = elNote.ElementID;
                       // make a connector
                       EA.Connector con = (EA.Connector)el.Connectors.AddNew("test", "NoteLink");
                       con.SupplierID = elNote.ElementID;
                       Util.setElementHasAttchaedLink(Repository, el, elNote);



Hi Fabio,

be aware: It may be no problem to clone a package. But I think this clone don't create new elements as it's content (shallow copy).

So you probably have to recursively dip into the package structure and clone all the elements and packages.


Hello Alberto,

you can't  assign a script to a toolbar button.

You can add a script to the context menu. Then Right Click, Scripts, Scriptname.

To add a script to the context menu:
- Create a Script Group of Type Browser, Diagram,..
- Drag the script into this Script group
- The script appears in the context menu according to the script group
  (Browser, Diagram,..)

If you want your script to work on browser and on diagram you have to duplicat the script and but it in Browser Group and in Diagram Group



you can use the tagged value type:

With this type you have no limits in entering text.

Seach in the help for: Tagged Value, Types
for the available types.

Best regards,


Automation Interface, Add-Ins and Tools / Re: Attribute values
« on: June 27, 2013, 07:28:42 pm »

you want the value of an Attribute?

An Attribut has a buch of properties/attributes but no property value. The possible properties are described in the help (Automation and Scripting, Reference, Element Feature Package, Attribut Class).

Valuable information you can also find in Thomas Kilians book ScriptingEA.

Best regards,



as far as I'm familiar with DOORS: Chances are good that there are no changes in DOORS regarding the essential features.

Therefore just give it a try. The matter isn't that complicate.

Kind regards,


Automation Interface, Add-Ins and Tools / Re: Script Groups in MDG
« on: May 29, 2013, 06:15:43 pm »
Script goups are not really supported by MDG.

Therfore it's a good idea not to include scripts in your MDG. Export your scripts  as 'Reference Data' and import it in the repositories where you need the scripts and script groups. You have to restart the repository.

Best regards,


Automation Interface, Add-Ins and Tools / Re: Script Groups in MDG
« on: May 27, 2013, 04:39:59 pm »
I don't think there is an easy way to put the scripts in the correct Group.

I see the following two possibilities:
  • Make an Addin to change the table t_script
  • Modify the import script.xml file  

The concept for both solutions is the same.
ScriptCategory: fix GUID
ScriptName:  GUID
AcriptAuthor: Null
<Group Type="PROJBROWSER" Notes=""/>  or
<Group Type="MODELSEARCH" Notes=""/>  or
<Group Type="DIAGRAM" Notes=""/>           or
<Group Type="NORMAL" Notes=""/>            or
<Group Type="MODELSEARCH" Notes=""/> or
<Group Type="PROJBROWSER" Notes="Scripts which are shown in the browser context menue."/>  

Script: Name of the Group  

ScriptCategory: fix GUID
ScriptName: GUID
ScriptAuthor: GUID of ScriptName of Group

With knowing this you can easily create your own Group or use it by existing scripts.

@Thomas, a possable content for your book

Good luck,



an easy way is to install an Addin (e.g. Geerts Navigator). Then you can see it.

Best regards,


Hello André,

I've found the example.

- Go into the EA help (F1)
- Search
- Select search for subject/title or so
- Search item is "Model Validation Example"

There you find an example.

Best regards,



a year ago I wrote an EA validation. If I remember right I used an Example of the EA documentation. It wasn't just writing a single function. It's more a framework for rules organized in categories and more...

If you follow the rules you can add your own rules and categories.  

Have a look in the EA documentation and resources. If you can't find anything I can send you my pretty complex validation or search for myself. Just ask.

Best regards,


Pages: 1 ... 57 58 [59] 60 61 62