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.

Topics - Viking

Pages: [1] 2 3 4

I would like to show additional information of an attribute of an UML class. Default is that the class shows its attributes with formats and its methods.

The best way would be to use and show aliases in addition. Unfortunately the alias “replaces” the name of the attribute. So I tried tagged value, but I can only show the tagged value of a class. Another possibility would be to use the attribute name plus the alias name as alias and show the alias. But than I would have redundant information.

Is there a way to show additional information of an attribute (e.g. attribute name plus alias)?

Many thanks, V.


I am using Elements (e.g. Business Process) with hyperlinks on them pointing to other diagrams.

When I create a report, the report generator also creates the figure of the hyperlinked diagram with some text (e.g. $diagrams). I don't want this to happen. Hyperlinked diagrams should only included like normal diagrams.

Is this standard behavior which cannot be changed or is there a check box which has to be activated or deactivated, respectively?

Many thanks in advance, V.


I currently try to generate a report with Virtual Document. A Report Package has several Model Documents. Each document has the same Template assigned. In this template I want to retrieve a Report Constant (or a Tagged Value, if possible) of the Model Document, it is assigned to.

The current situation is as follows:
(1) The Report Generator uses the Report Constants from the Report Package for the Cover Page, which has been defined in the Report Generator.
(2) For the templates, used by the Model Documents, the Report Constants stay empty. I do not know which Report Constants get retrieved.

My questions are:
(1) which Report Constants are used by the template under processing? As I said, they stay always empty.
(2) is there a way to retrieve Report Values of the Model Report currently under processing?

Many thanks in advance, V.


I followed the instructions in to create a report.

The document says "Double-click on the Document Artifact. The 'Generate Documentation' dialog displays". In my test a template gets opened, but not the "Generate Documentation" dialog. Is that correct? If not, how can I change this behavior?

Many thanks in advance, V.

Hi together,

in I read, that for Scripting "Microsoft Scripting Engine" (or "Mozilla SpiderMonkey") is necessary. My questions are:

(1) Is MS Script Debugger not needed anymore? If yes, from when on?
(2) Do Microsoft Scripting Engine and Mozilla SpiderMonkey support different features?
(3) Is the MS Script Debugger always needed for scripting or only in special cases (e.g. ActiveX)?

I cannot answer these questions on my own because I cannot install the deprecated MS Script Debugger.

Many thanks in advance, V.

Hi experts,

I am trying to create a report with Virtual Document. The “Master Document” has several “Model Documents” assigned to it. Every “Model Document” knows its own template. I have several questions:

(1) Is there a possibility to retrieve the tagged value of a “Model Document”? I am only able to retrieve the tagged values of a “Master Document”.

(2) Sometimes the “Model Documents” do not use their templates. Instead they use the system Template “Model Report”. Sometimes they use the right template. Is there a rule behind it, when a “Master Document” or “Model Document” uses which rtf template?

(3) I stored the parameters of “Generate Documentation” as a “Defined Document” in Resources. Can I put this element (or a representative) on the diagram of the “Master Document” or any diagram?

(4) Is it possible that a “Filter” retrieves the search value from somewhere, e.g. from the tagged value of “Master Document”?

Many thanks in advance, V.

Hi experts,

I am trying to create a report with Virtual Document. This is a high-sophisticated feature (at the moment more confusing than high sophisticated) of EA. I am using Master Document > Right Click > Documentation > Generate Documentation to generate the report. When I use this feature somewhere else the parameters for the Master Document get overwritten. Very strange. I have this high sophisticated feature Virtual Document and cannot safe these parameters.

O.K. I tried the element “Report Specification”. But then I read: Q: “Can you link the report specification with Virtual Documents (Master and Model Documents)?” A: “Not yet. We are investigating this feature request”. It would have been a good idea, but it is still under investigation...

Or am I wrong? Does there exist a possibility to save the parameters of Generate Documentation or Virtual Document, respectively?

Many thanks in advance, V.

Automation Interface, Add-Ins and Tools / Document Bookmarks
« on: December 14, 2017, 06:16:55 am »
Hello together,

I am still working on my small project creating a report with word by replacing GUIDs with artifacts out of EA (see,38932.0.html).

I identified a potential solution called "Document Bookmarks" decribed in

I followed the instructions and got an exception: "Bookmark undefined".

I did not think about the concept behind it before testing the example. Because the example did not work, I wondered, how Word can know that I mean a diagram in EA with this bookmark. Do I have to prepare Word? Do I have to use a special template (the one which I have to insert with "document file to insert")?

Many thanks in advance, V.

Automation Interface, Add-Ins and Tools / GUID of a diagram
« on: December 09, 2017, 05:15:24 am »
Hello together,

I thought that finding out the GUID of a diagram without using a script is simple. But it is not. The property field is empty. The question has already been asked, but no answer was given:

Could someody give me the answer, please? Many thanks in advance, V.

I am quite sure that it exists already.
I am looking for a script (VBScript), that replaces keyword (resp. appropriate search-statements) in MS Word with Sparx EA diagrams.
In other words, I write a document with Word and add keywords, which will be replaced by diagrams out of EA, as soon as I start the script.
Thank you very much in advance for your feedback, V.

Hello, I will get crazy (maybe it is already to late). Because I did not get the Eclipse / Java example to run, I tried Geert's Excel example. But the script says always that I may have forgotten to start EA or something else is wrong.

What I did is:
- "Install" Enterprise Architect Object Model or EA.tlb respectively via Excel References.
- "Install" Microsoft Word Object Library
- run "ea.exe /register".
- start EA.

Does anybody know if it is necessary to install EA.tlb via regtlibv12.exe?

Any other suggestions? Are any admin-rights required (e.g. to \Windows\System32)?

Is the reason that I use "GetObject(, "EA.App")? What if I start two EA's? Which one will be accessed?

Many thanks in advance, V.

Hi, is there Mercurial support in the meantime? The only article I fould for this topic is from 2010 ( Many thanks in advance, V.

Hello, I am curious if anybody got the example of EA to work. I often read the same problems as I have, but no solution. I am not allowed to put the SSJavaCOM.dll into a system folder. That's why I am using System.load("C:/Program Files (x86)/Sparx Systems/EA/Java API/SSJavaCOM.dll") instead. I tried this in EA and Eclipse. In EA I got a java.lang.NullPointerException. In Eclipse the system throws "Exception in thread "main" java.lang.Exception: Failed to construct object. Error code: 0x80040154". I tried several alternatives (e.g. setting pathes in environment variables). But nothing works in both environments. I cannot image that the restriction with the directory is the reason. Help and ideas are very welcome. V.

I want to access EA from Eclipse using java. I turned into 32 bit.

I am using following code:

package com.sparxea.explore;
import org.sparx.Repository;
public class Explore {
   public static void main(String[] args) {
      String db = "EntArchDB_PROD --- DBType=1;Connect=Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=EntArchDB;Data Source=ldbisprd1,4042;LazyLoad=1;";      
      // System.out.println("Start Connection!");
      Repository rep = new Repository();

I am not allowed to put the SSJavaCOM.dll into the system-folder. So I used an Environment variable: %ProgramFiles(x86)%\Sparx Systems\EA\Java API

I get following Exception from "new Repository()", because the dll cannot be found:

java.lang.Exception: Failed to construct object. Error code: 0x80040154
   at org.sparx.Repository.comConstructor(Native Method)
   at org.sparx.Repository.<init>(

Any ideas? Is the reason the environment variable? Is there an alternative?

Many thanks in advance, V.

Hello together,

I am looking for possibilities to access the Sparx API from "outside". I want to run "scripts" in Java, Visual Basic or something else (that works) and manipulate content in EA via the Sparx API. So to say I want to run a script which also could be excecuted inside EA. Most welcome would be Java inside Eclipse as container.

The database for our EA environment is MSSQL-server. I saw a lot of possiblities to access EA (e.g. Scripting Enterprise Architect, from there I used the subject-title). But these possibilities are EAP-based and sometimes I have the impression, that they are outdated (e.g. I did not find a complete example using Java API).

Are there any summaries available?

Many thanks in advance, V.

Pages: [1] 2 3 4