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 - rashid.mohd

Pages: [1]
1
Automation Interface, Add-Ins and Tools / EA COM Interface
« on: November 01, 2006, 03:59:59 am »
We have developed an addin in EA using C# and it is working fine and all menu options are visible under “Add-Ins” in main menu of EA.

Now I have some problem with EA COM interface:

1.
When I open another EA repository file (.eap) through this addin then my addin disappears in new EA window. I am using following command to open new EA repository.

EA.RepositoryClass rc=new EA.RepositoryClass ();
rc.OpenFile(@"c:\Test.eap");  

 Above code opens new EA instance and Test.eap gets opened in this new instance of EA but my add in gets disappeared!!!!!!

2. EA COM interface provide following event:
 
  public void EA_FileOpen (EA.Repository Rep)
 {

openRep=Rep ;
 }

Where openRep is declared as

public static EA.Repository openRep;

As we know “EA_FileOpen” allows the Add-In to respond to a File Open event. When EA opens a new Model file, this event is raised and passed to all Add-Ins implementing this method. In this method we have stored the open repository reference in static variable “openRep”. Now my question is that can I access “openRep” through another addin or COM interface. So that I may use same repository to open new EAP file.

3. Suppose EA is open and we want to open an EAP file through another EXE, COM or DLL in same open EA instance. Is it possible???





Regards
Rashid
Project Manager
India



2
Automation Interface, Add-Ins and Tools / Re: External Requirment
« on: October 16, 2006, 09:50:15 pm »

Quote
Take the Elements collection from a package and use AddNew("My Requirement Type", "Requirement").



Hi

Thanks

3
Automation Interface, Add-Ins and Tools / External Requirment
« on: October 16, 2006, 04:53:52 am »
Hi

I want to create external requirement element in model hierarchy of EA through C#. I am able to create internal Requirements that are not visible in Model hierarchy.

So there is any way to create external Requirment in EA.


TIA
/Rashid
PM

4
Automation Interface, Add-Ins and Tools / Re: Creating requirements
« on: October 16, 2006, 04:52:26 am »
Hi

One more thing can we create external requirement element in model of EA through C#. I am able to create internal Requirements that are not visible in Model hierarchy.

TIA
/Rashid
PM

5
Automation Interface, Add-Ins and Tools / Cross Reference
« on: October 05, 2006, 10:16:47 pm »
Hi

I want to access all  the cross Reference created in the EA model for each EA element by C#.

For this I have used the following class:

           EA.ReferenceClass ()

But when i try to create instance of this class simply by following statement
 
          EA.Repository a=new EA.RepositoryClass();

Then on building i am getting the following error message:

"E:\EA_Project\EaTest.cs(124): 'EA.ReferenceClass.ReferenceClass()' is inaccessible due to its protection level "  
:'(


So what i am doing wrong can any body tell me....

Also i have Added the Enterprise Architect Object Reference in my project.


Regards & Thanks
Rashid M
Project Manager



 :'( :'( :'(

6
Hi

Can we programmetically define (i.e. create new ) tagged value for selected package in model hierarchy and letter that these defined tagged value can be accessed by C# interface in EA.


Rashid
Project Manager


Quote
Hi Touseef,

A few versions ago EA changed the way tagged values were displayed. Since then I don't think the documentation has entirely caught up.

What you need to do is to open the Tagged Values window. You can do this from the View menu, or with the control-shift-6 hot key combination. Note that this window can be kept open while you work with your project, and can be docked. If docked, it will be open by default next time you open EA. [I often dock it with the Properties window, and the new Pan and Zoom window, and keep them under the Project Browser. You should consider finding a layout you like and making it your default EA desktop.]

From the Tagged Values window you can view, add, modify and delete tagged values for the element selected on a diagram or in the Project Browser. This latter mode works well for elements that might not appear in any diagram in your model.

HTH, David


7
Automation Interface, Add-Ins and Tools / Add-in Menu Problem
« on: September 08, 2006, 03:46:48 am »
We want to make an Addin in EA that will create two separate Menus i.e. one will on Main menu of EA and other will be created on the Tree View of Model hierarchy by same addin. For this we have used the following Event in add-in

  EA_GetMenuItems(...)

In this event code we have set the MenuLocation as “MainMenu” but it created same menu in both Main menu of EA as well as in TreeView.  :(

So help me

Rashid

8
Automation Interface, Add-Ins and Tools / Tab in EA
« on: September 07, 2006, 05:44:12 am »
I am integrating EA with other third party Requirement management tool and for this project i want to create a Tab in 'Project View' side i.e. just near to Project View tab. I have used the AddTab method but it create a full screen tab in EA. So can u tell me how to create a tab in EA just look like Project View tab.
Also i want to add a .NET Tree View control  in created TAb


HElp me !!!!!

RASHID
Project Manager

Pages: [1]