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

Pages: 1 2 [3] 4 5 ... 11
Bugs and Issues / Re: Repository.SaveAsDiagramProfile does not save colors
« on: November 16, 2019, 01:57:17 am »
Indeed. I reported the bug.

Bugs and Issues / Repository.SaveAsDiagramProfile does not save colors
« on: November 11, 2019, 01:18:40 am »
Great idea. It would be a very useful function.
However, unless I am missing something, in our case it is useless as it does save the colors.

A user can change an existing connector by moving a connector end to another element.
And in that case "EA_OnPreNewConnector" is not triggered.

Does anybody know what event is triggered in that case?

Thank you in advance,

... when the stereotype is defined in an MDG?

Does anybody know?

Thank you in advance,

Are there any plans to provide URLs that are accessible from outside the repository.

Here is a use case:

User 1
- Right-clicks on a diagram and select (new option) "Copy link to diagram" (just as in OneNote).
- Copy the link in an email.

- Create links to diagrams and puts them in emails or on a web site

User 2 (recipient)
- Clicks on a URL

- Starts if was not already running
- Opens the diagram and makes it active

Related to history of Changes and fixes for Build 1427. (

Still no API to make this synchronization automatic vs manually pushing a button every time?

Can't find any.

So we can write console programs or services that access the object model in batch mode
- without having to install EA on the server
- without existing limitations which are due to the fact that EA is a desktop program

General Board / Re: Pros and Cons of mixing TOGAF and Archimate?
« on: August 27, 2019, 09:04:20 pm »
Indeed it is the same problem everywhere.

An alternative is having one single language that makes sense i.e.
- that is based on precise systems semantics

- and that is designed to support the complete process of driving transformations (the TOGAF ADM is a process for driving one single change)

For more information please contact Sparx Europe.

The alternative is to delete the list view and regenerate it.

When you define an element stereotype, you define notably the
- tagged values
- their grouping
- the default child diagram types.

When you "synchronize stereotype", only the tagged values are updated.
Their grouping and the default child diagram are not updated.

So the "synchronize stereotype" feature does only part of its job.


Thank you very much for trying to resolve this.

However there is only one instance running. It is a command line program that start a single new instance using that line "Process externalEaProcess = Process.Start(repositoryFileInfo.FullName)".

So it cannot get the wrong instance since there is only one.

Thank you anyway,

Hello Eve,

Thank you very much for your quick answer.
I tried to use Repository.LoadAddins (see code below) but that does not make the OnInitializeTechnologies to be called.

To summarize:
- If I just open the repository from the Windows UI, it calls OnInitializeTechnologies properly (it has being doing this for years).
- But when a batch program opens the repository then OnInitializeTechnologies is not called, even when Repository.LoadAddins() is called after opening the repository.

What would you suggest?


if (eaRepo.OpenFile(sFullPath))
    return true;

Dear Eve and Ian,

Indeed as indicated on this link provided by Eve, we can load an MDG from an AddIn, and that is what I am doing.

However, the problem is that the OnInitializeTechnologies is not loaded when EA is started in batch mode.

And that prevents us from generating HTML in batch mode, which is a feature I absolutely need (I might not be the only one).

So if the ImportTechnology was working instead, that would be a viable workaround. So the request from Ian should be considered I think.

As a conclusion the ability to load a custom MDG, including in batch mode, is critical.
We should be able to do this
- either OnInitializeTechnologies
- or using ImportTechnology

Any idea, Eve, when we can have a quick fix with one or the other options?


I need to generate HTML using an MDG loaded from my addin. And this needs to run in batch mode.
But OnInitializeTechnologies is not called when running in batch mode.
It works perfectly well when running in normal/user interface mode.

As a workaround I tried to start another instance and call RunHTMLReport() on that other instance (code below)
But RunHTMLReport() returns an error.

Did anybody encounter the same problem... and found a solution :-) ?

Thank you in advance


Process externalEaProcess = Process.Start(repositoryFileInfo.FullName)
object obj = Marshal.GetActiveObject("EA.App");
EA.App app = obj as EA.App;
Repository repo = app.Repository;

Pages: 1 2 [3] 4 5 ... 11