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

Pages: 1 ... 6 7 [8]
Hi all,

I'm back. My last posting is from 2007. Meanwhile I did some work with other tools in different companies, but now I'm again in a project with EA.

My problem: I have a VB-Script to save the entire repository to XML-files, written in MS-Word-VB. Until last week it worked fine, but then they installed EA7.5 upon my EA7.1, I had before.

The script goes like this:

Sub EA_XML_Export()
Dim m_Repository As Repository, package As package, m_project As Project
    Set m_Repository = New Repository
End Sub

When trying to create the repository-object, I get the error-message: "run time error '429'. Active X Component can`t create Objekt" (Translated from german).

I guess it has something to do with the version upgrade. Unfortunalty I have no admin-privileges to re-install the tool or to check the registry or whatever.

Thanks for help

Automation Interface, Add-Ins and Tools / Re: Document Generation
« on: December 05, 2006, 02:05:56 am »
Hi Jorge,

I will be very lucky if s.o. has a better answer than this one: I fear, you will have to save your diagram as image. Cut it into pieces with a third party tool (e.g. irfanview) and manually insert the segments into your document.


Automation Interface, Add-Ins and Tools / Re: Ordering in a Report
« on: July 18, 2006, 05:22:25 am »
In this forum there are a lot of threads about this topic. You should take a look around. Anyway, "ordering in a report" is queer, so you should look at VB- and SQL-solutions as well.

If you use the rtf generator, be sure that the option "Model Document" is switched on in your template. You'll find it in the rtf template editor on the left side under element and under package.
Using C# or VB is difficult, as the content of a document artifact is stored in a zipped format and afaik there is no get-and-unzip-method in the API.
hth Stefan

Hi all, I have two minor problems I'd like to mention in this thread:
    [1] In the above shape, if the name of an element is longer than the size of the icon in the diagram, the letters are cut off to the left and to the right. I tried PrintWrapped("#NAME#") instead, but then the #NAME# is somewhere outside the shape (... has something to do with v_align).

    [2] Is there a method to protect shapes and stereotypes against changes of my colleages?


Hi nara_c
Your solution would be to perform an export of the entire Model and also 'Export Reference Data...' from the tools menu.  This second option enables you to take master data such as Stereotypes, Images etc, which are model specific and move them to another model using the Export & then Import options.

In-between I tried <tools> <data management> <data transfer> <DBMS to EAP>. This is very useful for saving the entire database to a local file but has the disadvantage that it is not good for delivering models to our stakeholders. It contains not only the great models but also the "playground" (our EA experimental area).
Your suggestion is better for our purpose.

With regard to your question on sharpe script, you seem to have found the answer on another post with Thomas's help.

This is my shape for actions and activities (and any other symbol) with stereotype "LiDo" (to mark elements with attached Linked Documents):

shape main
roundrect(0,0,100,100,20,20); // Case Outline
roundrect(50,05,90,32,2,2); // Doc Outline
moveto(55,10); // The Lines


   text name
Sparx: I hope I can trash this soon (sorry, off topic).

Thanks to all for help!

Hi nara_c,

thanks, that works great!

sigh, next problem: where is the name of the element? When I assign an image via image manager, the elements name goes below the image. But when I use stereotyped images, the name is missing, even if the image is transparent. Is there a command for displaying the elements name and/or position?

Another problem: Our model is in a database. When I deliver it to remote locations I have to export it to XML first. But the image manager and the shape scripts are not part of the XML-export. Is there a solution how to backup the entire model and its environment to a local XML- or EAP-file?


hi all, I recently noticed that not all elements can change their image. E.g. an activity in an activity diagram can be changed but not an action. When you use the short-cut (CTRL-Shift-W) on an action, nothing happens. Same on activities opens the image manager. Furthermore selecting an action and choosing <settings> <images...> pops up the image manager and you can select an alternate image. But after <OK> nothing has changed.

Seems that for any unknown reason some elements can not change their image and you can find this by pressing CTRL-Shift-W ???


hi all, is there a method to export an RTF template into a XML flatfile by using the automation interface (like exporting a package with ExportPackageXMI)?


fixed in 786 - thx Sparx

hi Sparx,

in my RTF-Template under Connections I have a table with these columns:
source > element > {Element.Name} < element < source
target > element >.{Element.Name}.< element < target.

However, since 785, it generates not only the but the name AND the content of the linked document  ???

seems to be a bug?

PS.: SPARX: I reinstalled 781, and the RTF-Generator works fine.

Automation Interface, Add-Ins and Tools / Re: Objects: RTF doc problem
« on: November 15, 2005, 06:57:07 am »
Tom, Element.Classifier lists the class of an object and is empty for all other elements of an activity diagram.
E.g.: {Element.Name} ({Element.Type}) {Element.Classifier}

hth Stefan

Automation Interface, Add-Ins and Tools / RTF generation: controlflow guard
« on: November 14, 2005, 09:15:58 am »
Hi all, how do I get the guard-conditions into an activity diagram report (based on basic template)?

Element - Connections - (pondering...  ???)

tfh Stefan

Pages: 1 ... 6 7 [8]