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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Control EA via command line
« on: January 25, 2018, 07:59:28 pm »
I figured out that i don´t like VBS so i decided to change to C#.

I got a quite simple solution to generate documents via c#.

Code: [Select]
//References: http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/automation_and_scripting/reference.html

namespace CSharp_GenerateDoc
{
    class Program
    {
        static string File = Path to .eap-File;     
        static string GUID = GUID of required package;                      //GUID vom "Requirements" Package unter "Global"
        static string Doc_Template = Name of Document_Template;
        static string FileName = Name of generated File;

        static void Main(string[] args)                             
        {
            EA.App EAClient = new EA.App();                         
            EA.Repository EA_Repo = new EA.Repository();           
            EA.Project EA_Proj = new EA.Project();                 
            EA_Repo.OpenFile(File);
            EAClient.Visible = false;
            EA_Proj.RunReport(GUID, Dok_Template, FileName);
            EA_Repo.Exit();
        }

    }
}


Thanks for help!

2
Automation Interface, Add-Ins and Tools / Re: Control EA via command line
« on: January 23, 2018, 09:50:54 pm »
I will try to put the code of the EA-Script to an PowerShell script. I also will upload my solution if it works.

Thank you for your quick reply!

3
Automation Interface, Add-Ins and Tools / Control EA via command line
« on: January 23, 2018, 09:03:54 pm »
Hi everybody,

is it possible to control enterpirse architect via command line and is there any documenation about this topic?

What i want to do:
I use a diagram script to generate a rtf-Report. We want to automate this step and have it done by jenkins every night. I think it would work with EA-Automation (like an external c#-code) but it would be nice if it would work with the already existing scripts of EA.

Thanks!

4
General Board / Re: Multiple use of elements in diagram
« on: July 19, 2017, 06:39:46 pm »
"This more sounds like you use instances (concrete elements). You can create as many instances as you like and place them in a single diagram."

--> But i can´t create instances from ports, right?

I get following message:

"When dropping embedded elements (Ports, Object Nodes, etc.) on to a diagram, you must drop them on their correct owner."

5
General Board / Re: Multiple use of elements in diagram
« on: July 19, 2017, 05:25:14 pm »
But lets imagine the following UseCase:

I am designing an electronic device in a block-diagram and every interface of this device is modeled by a port, e.g. UDC_out = 3,3V.
Now imagine following steps:

1. I create 5 diagrams, each diagram for an other electronic device
2. Every diagram/ every device needs an UDC_out
3. I am creating 5 ports, one for each diagram, to use these in my model.
4. Each of these ports has the same meaning
5. I put a desctiption under the "notes"-field

Problem 1: I create a new diagram and i have to create a port again.
Problem 2: If i put a description for the port UDC_out under the "notes" and i want to change this description, i have to do this 5 times.

Wouldn´t it be easier, if i could create a port once and then use instances of this port as i can do it with other elements?

Thanks for help!


6
General Board / Re: Multiple use of elements in diagram
« on: July 12, 2017, 11:13:18 pm »
Perfect, that sounds like a good solution.

But there is one special case:

I created a Block-Diagram including Blocks and Ports. Now it is possible to use these Blocks in an other Block-Diagram, while it is not possible to use these Ports in an other Block-Diagram.

Is there a reason for this behavior? Or is there a workaround for this problem?

Many Thanks!

7
General Board / Multiple use of elements in diagram
« on: July 12, 2017, 10:44:53 pm »
I am trying to place the same element second time in diagram. It is not possible and i get following message:

This diagram already contains an instance of the element you are trying to paste.
Currently, only one instance is supported, so you cannot paste the element here.

Is there a way to solve this problem?

Many thanks

8
General Board / Diagram Filters - Hide References in Block
« on: May 05, 2017, 12:28:09 am »
I build a block diagram. With the "Diagram Filters"-function i can hide or fade different Blocks. Despite filtering, every hidden Block is displayed as reference in the higher leveled Block.

Is it possible, that every hidden Block is also hidden at the reference-list? Or is it intentional, that each Block is displayed as reference, despite filtering?

Thanks for your help.

Pages: [1]