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 - Andreas Morgenstern

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Full Name in Relationship Matrix
« on: December 21, 2016, 10:11:15 pm »
Hi,

is there a way to show the full name in the Relationship matrix?
In the options, I did not find a way.

Andreas

2
Hi,

I'd like to insert hyperlinks into a custom sql fragment within the document generator but I fail
on an oracle DB. Did anyone use a custom sql fragment on a oracle database and can
tell me what todo?

Andreas


E.g.  I've tried the following SQL-fragment taken from Sparx EA Documentation:

Code: [Select]
SELECT t_object.ea_guid CONCAT t_object.Name

     AS [BaseClassName.Hyperlink]

     FROM t_object, t_connector

     WHERE t_connector.Start_Object_ID = #OBJECTID#

     AND t_object.Object_ID = t_connector.End_Object_ID

     AND t_connector.Connector_Type = 'Generalization'

Unfortunately, what I get is (translated from german):
Keyword FROM not found at expected place ...


3
Hi,

I want to generate a document for a component that contains sub-components
and would like to use a different template for the component than for the sub-components.
Any idea how I can achieve that with the build-in features of the document generator?

Andreas

4
Hi,

I'm currently trying to setup a documentation Generation based on an EA-Model.
There, I want to also document the requirements (as an EA-Element) linked to a component.

Which connector type/stereotype do I have to use such that I can use the build-in
"External-Requirement" functionality?

I already figured out that one connector that works is the realizes-connector,
but for our modeling approach this is not the most appropriate.


Thanks for your help

Andreas

5
Hi,

assume we have an Element with two Diagrams below.

Element
     Diagram 1
     Diagram 2

If I generate the documentation generation manually in the context menu of Element, everything works fine.
However, when I use the docGenerator API from within a script the generated rtf-documentation wrongly contains the diagram Diagram 1 twice.

Anybody has an idea?

Andreas

Code: [Select]
var DOCUMENTATION_TYPE=dtRTF;
var OUTPUT_FILE="C:\\Users\\morgenst\\Documents\\test.rtf";;
var ComponentTEMPLATE="ACTL Context Diagram Template";

function main()
{
Session.Output("Documentation Example");
// Create a document generator object
var docGenerator as EA.DocumentGenerator;
docGenerator = Repository.CreateDocumentGenerator();
// Create a new document
Session.Output("Documentation Generator created");
if ( docGenerator.NewDocument("") )
{
generationSuccess = docGenerator.DocumentElement(4749, 0, ComponentTEMPLATE );
if ( !generationSuccess )
Session.Output( "Error generating Component documentation: " + docGenerator.GetLastError() );
success=docGenerator.SaveDocument(OUTPUT_FILE,DOCUMENTATION_TYPE);
if (!success)
Session.Output("Error saving to File:"+docGenerator.GetLastError());
Session.Output( "Done!" );

}
else
{
Session.Output( "Could not create new document: " + docGenerator.GetLastError() );
}

}


main();

6
General Board / Deleting of Notes not possible
« on: June 14, 2016, 08:22:20 pm »
Hello all,

I've got some strange artifacts (Notes) in my EA model which I'm not able to delete.
These are notes that had originally been generated during the import of Use Cases (Extension Point:read an alert).
Any idea how I can remove them ?


Andreas

7
Hi,

I've created a RTF-Template for an "Architecture Scenario Template" and added it to our UML-profile. Moreover, I created a Stereotype "Architecture Scenario" that extends artifact.

However, ideally, I'd like to have that whenever a new "Architecture Scenario" Element is created, a linked document filled with "Architecture Scenario Template" should be automatically added.
Is there a way to achieve that without addins ?

Thanks a lot,

Andreas
  


8
Hi,

Is there a way to synchronize the EA Database and the "Objects" provided by the API.
Assume I retrieved the root model with
Code: [Select]
root=Repository.Models.getAt(0)in an Addin
Clearly, I can change the name with
Code: [Select]
root.Name="Test" Updating the database can now be done with
Code: [Select]
root.Update()
But I don't know how to do accomplish this the opposite way. Is there a build-in method that reloads the content of the database?
I mean I can retrieve the root again from the database, but is there an automatic way to do it?

Thanks,

Andreas


9
Automation Interface, Add-Ins and Tools / Event on run script
« on: July 16, 2014, 10:01:07 pm »
Hi,

I'd like to react in a (C#) Addin when a user runs a script.
Is this somehow possible ?

Andreas

Pages: [1]