Book a Demo

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

Pages: [1] 2
1
General Board / Re: how can i get Classdiagramm or Componentdiagra
« on: January 14, 2010, 09:35:11 pm »
ich think i have got to import an Asembley and created Diagramms too. now i want to export it in image or somthing. but i still canould not find out that proper funktion or menues.

how do i do it?

thank you

burkut

2
General Board / Re: how can i get Classdiagramm or Componentdiagra
« on: January 14, 2010, 08:54:23 pm »
Quote
Yes you can.
Are you trying to get an image of a diagram or...?
For the image look at Project Interface.PutDiagramImageOnClipboard or Project Interface.PutDiagramImageToFile

Geert

i could not see any Choose of "Project Interface" or something. i am really new in EA. can you please describe somewhat clearly.

Sorry, may be i have not expressed my mean clearly enough.
i have two Assemblies(one dll and one exe). so i want to get the classdiagramm or Componentdiagramm so that i will get an better overview of the structure. if it is not possible to get these with an assembley, i have the source Code too. in a word i want to get out a diagramm and the Image maybe later if possible.


3
General Board / how can i get Classdiagramm or Componentdiagramm?
« on: January 14, 2010, 09:17:09 am »
hallo,

can i output a classdiagramm or componentdiagramm from an Asembley(dll and exe), which was written in c#? can anbody help me? i coldnot find this kind of function in EA? I think it shoud be possible to do this kind of works. shoud not be?

thank you

burkut

4
General Board / Re: how can i see (visual)  the   Diagram?
« on: December 04, 2009, 09:20:39 pm »
i could not find the node "Component View" or something like that. But i can see my Visual Diagram now by double clicking on the connections in Project-Browser. Maybe that is not nice way, so still i have some Problems like:

i can't connect the Interfaces(one is provided and another is required) of two Components. can anyone tell me, how it can be done? Ohhh i am tired, is it a complex Tool, so that one can learn it not easyly? can anybody tell me an easy Tutorial, so that i can learn how to create an Components model in EA?

PS: i want to attach a snopshoot of my Screen? how do i upload here?.

thank you

burkut

5
General Board / how can i see (visual)  the   Diagram?
« on: December 02, 2009, 07:06:56 am »
hallo,

i am a newbie in EA. i have never used it before. so i want to create  a  Componentendiagramm and test it. so i have created it:
new-Project--save it under Test.eap--->choose Component model
then i have ceated two components test1 und test2 ....
i want to see them visual. but i have not got it.......

how can i do it?

thank you

burkut

6
hello Simon,

another Problem ist that i couldn't see "value EAAddIns under the location: HKEY_CURRENT_USER\Software\Sparx Systems". May be i should register EA at first. i don't know. I have tried to use regasm.exe  with my .Net dll (i think it is, because it was written in c#).

any idea?

cheers

Burkut

7
hallo,

i don't know how can i describe the problem.May be it is the Problem about Windows Registry und EA.First of all i want to know how  can i register EA in to Windows registry? wihch file should i useif want to register it with regsvr32?

May be it is not necessary to register the EA in this way. The Problem is that:
if i start EA and want to open my AddIn menu, i could not see my Application menu. it stands ther only "Manage AddIns.."-->CS_Framework  --------  Error ------------- XXXX

this Problem occurs only , if i try to use my Application in other PC than mine. on other PC was installed EA and .Net Framework 2 too.

on my PC there ist no problem, because the Registry is done automatically if it is building or so... i am not sure.

Any body know this Problem or any ideas?

thanks


Burkut

8
Quote
Hi,

I'm not entirely sure what you need, but I think the
Repository.ConnectionString, Repository.Models and Repository.EAEdition might be helpful.

Geert

Yes, i can get Projectname by Repository.ConnectionString, that is correctly what i want to.

now is the Problem with Toolname of EA?

thank you.

9
Quote
Hi,

I'm not entirely sure what you need

Geert

I need:

1. The Projectname that was opened by User in EA currently
2. Reall Toolname of EA. I need it in my Code. I want that EA tells me what is its name?

cheers

Burkut

10
hallo,

i am working with an Automation Interface in C#. So i want to get Project name that was currently opened. if it is possible i want to get the fully toolname of Enterprise Architekt in my Programmcode.

can anybody help me, how i can get these informations?

thank you very much.


Burkut

11
Hi Günther,

My .NET remoting configuration for my all client samples done by Manually. unfortunately i can't get any Message such Security isues, bugs, warnings .... etc. nothing i can get, so i can't say the problem is there or here.
I mean with "Disappearing Message" that i can't get any trace(bugs, warning or something like that hints to me know what was happened after i send the message) of it.
you are right there is no exception too. i can debug to the point, where ther server send the message and i know that the Callbackobject of Client is still alive, und next debuggingstep no reaction on both sides. the break point on the client has no effect, i mean the Sever message does not come to there.

you have said, you have seen some examples like that for MS Word something, can you please give the links for the examples if you find please?

cheers

Burkut

12
hallo,

i have following Problem. Is there anybody, who can help me or can give some suggestions?
i want to create an AddIn in EA. So i have used the Automation Interface with C# in the following linkhttp:// http://www.sparxsystems.com.au/resources/developers/autint.html.

the Background of this Programming is that i want to create a kommunication between EA and my Application. My Application is hier a lokal Server(f.e. Windows service). For that Automation Interface of EA shloud be a Client of my Server. So i have written in C# a Client Connector class so that it uses .Net Remoting and creates a connection to the Server. The connection can be created und i can send Msg to the Server, the Server can process it so it was intended to. All these are ok. The Problem is here:

the Server can send the processed Msg to the Client (also to Automation Interface ) but my Client can't receive the Msgs anyway. there are noch Bugs too. It disappears without any Bugs or something like warnings... (I am using for the Return Channel the Callback Mechanism.), the Strange thing is hier, i can receive the Message, if start my Client without Automation Interface, also as independent(Windows or Console) Application. So it works fine. No other Problems.

it is so mysterious, so that i can't find out the reasons. I am very gratefull, if anybody helps me on this problem.

Thank you for time.

Burkut

PS:
1.I am using VS 2008.
2. Settings for A utomation Interface with C# are same in the README in the Zip file. :) :)

13
hello Günther,

thank you very much for your Reply again. If you want to know, what realy i want to do, please visit the Link first http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1256730611. I think i have described there clearly what i want to.
The main problem is that i couldn't get my external Message because of the EA.exe und another Main thread that includes my Client. I think my message is accepted by the EA or EA.exe, but not reached or switched to my main Thread.....

May be it is usefull for me, if there is an Example like that or Suggestions what you did yesterday....

Thank you for your time again...

Burkut

14
hallo Günther,

Thank you for Help. It worked, as i tried to use what you have suggested to.

by the way, i have an another question: Do you know, which Unit or Komponent (i mean it may be a thread or process) that processes (or receives ) an external message that ist f. e. fired from an external Application. you can suppose that an external Application connected with EA over an Automation AddIn Interface?

Thank you again.
burkut

15
hallo,

thank you for reply. But they have no effect, if use it in the Automation Interface with c#. f.e. like this:

Code: [Select]
using System;
using System.Windows.Forms;
using RemotingHub;
using ClientConnector;
using System.Threading;

namespace CS_AddinFramework
{
      public class Main

      {
            private bool m_ShowFullMenus = false;
            public Form1 theForm;
        EAAdapterConnection eaaCon = new EAAdapterConnection();
        Thread t;
            //Called Before EA starts to check Add-In Exists

            public String EA_Connect(EA.Repository Repository)
            {
            try
            {
              
                //StartClient();
                //No special processing required.
                return "EA Adapter wurde mit Hub-Server verbunden.";
            }
            catch (Exception e)
            {
                //No special processing required.
                return "EA Adapter wurde nicht mit Hub-Server verbunden.";
            }
            }

            //Called when user Click Add-Ins Menu item from within EA.
            //Populates the Menu with our desired selections.
            public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)
            {
                  EA.Package aPackage = Repository.GetTreeSelectedPackage();
                  switch( MenuName )
                  {
                        case "":
                              return "-&CS AddinFramework";
                        case "-&CS AddinFramework":
                              string[] ar = { "&Calculator", "&Menu2", "About..." };
                              return ar;
                  }
                  return "";
            }
            
            //Sets the state of the menu depending if there is an active project or not
            bool IsProjectOpen(EA.Repository Repository)
            {
                  try
                  {
                        EA.Collection c = Repository.Models;
                        return true;
                  }
                  catch
                  {
                        return false;
                  }
            }

            //Called once Menu has been opened to see what menu items are active.
            public void EA_GetMenuState(EA.Repository Repository, string Location, string MenuName, string ItemName, ref bool IsEnabled, ref bool IsChecked)
            {
            
                  if( IsProjectOpen(Repository) )
                  {
                        if( ItemName == "Calculator" )
                              IsChecked = m_ShowFullMenus;
                        else if( ItemName == "Menu2")
                              IsEnabled = m_ShowFullMenus;
                  }
                  else
                        // If no open project, disable all menu options
                        IsEnabled = false;
            }

            //Called when user makes a selection in the menu.
            //This is your main exit point to the rest of your Add-in
            public void EA_MenuClick(EA.Repository Repository, string Location, string MenuName, string ItemName)
            {                                    
                  switch( ItemName )
                  {
                case "&Calculator":
                    {
                        //StartClient();
                        //System.Threading.Thread.Sleep(3000);
                        //myTest();
                        //t = new Thread(new ThreadStart(EAAdapterConnection.sendEvent ) );
                        //t.Name = "myThread";
                        //t.Start();
                        openForm();
                        
                    }
                    break;                              
                        case "&Menu2":                              
                              break;
                        case "About...":
                    MessageBox.Show(
                        "Created by Sparx Systems as a guide for anyone\n"+
                        "wanting to develop a C#.NET Add-In for Enterprise \n"+
                        "Architect\n [email protected]\n"+
                        "http://www.sparxsystems.com.au",
                        "About Enterprise Architekt",
                        MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                              break;
                  }
            }
       void EA_FileClose( EA.Repository repo) {

           MessageBox.Show("file Close!!!!");
    
    }

        void EA_Disconnect() {
            MessageBox.Show(" EA Disconnected!!!!");
        
        }

        private void openForm()
        {
            theForm = new Form1();
            theForm.ShowDialog();
          
        }

    
            }
}
            
            
      

  

Pages: [1] 2