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

Pages: [1]
1
General Board / C# Plugin
« on: February 21, 2005, 11:34:08 am »
Could someone please direct me to an example of a C# plugin?

Thanks

2
Base upon what a user adds to their UML model, I want to push into their model additional model elements.  I plan to use automation and write a plugin to support this.

I am looking for general guidance and want to make sure I am headed in the correct direction.  My plan is to interrogate the EA.Repository object and push new elements into the same object.  Is this general the correct method to add new elements to the user model?

Can you direct me to an example?

Thanks for your help.

3
I have a profile that has a stereotype <Uses> that extends <Realization> meta class.  When <Uses> is used between two classes, I want to popup a menu of the attributes that are present in parent class.  Is this possible? Can you direct me to where I may learn more?
Thanks

4
Automation Interface, Add-Ins and Tools / Re: C# Plugin
« on: March 02, 2005, 01:19:15 pm »
I copied EAHelper.dll to C:\Program Files\Sparx Systems\EA.

I ran regasm on EAHelper.dll.  Here is the EAHelper.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}]
@="EAHelper.EAHelper"

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}\Implemented Categories]

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}\Implemented Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}]

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}\InprocServer32]
@="mscoree.dll"
"ThreadingModel"="Both"
"Class"="EAHelper.EAHelper"
"Assembly"="EAHelper, Version=1.0.1882.19404, Culture=neutral, PublicKeyToken=47c899ad901b36f3"
"RuntimeVersion"="v2.0.40607"
"CodeBase"="file:///C:/Program Files/Sparx Systems/EA/EAHelper.dll"

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}\InprocServer32\1.0.1882.19404]
"Class"="EAHelper.EAHelper"
"Assembly"="EAHelper, Version=1.0.1882.19404, Culture=neutral, PublicKeyToken=47c899ad901b36f3"
"RuntimeVersion"="v2.0.40607"
"CodeBase"="file:///C:/Program Files/Sparx Systems/EA/EAHelper.dll"

[HKEY_CLASSES_ROOT\CLSID\{0D53A3E8-E51A-49C7-944E-E72A2064F93A}\ProgId]
@="EAHelper.EAHelper"

@@@@@@@@@@@@@@@@


[HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins]

[HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins\EAHelper]
@="EAHelper.EAHelper"


*******************

I am still getting the error :

There was an error loading add-in:

EAHelper(EAHelper.EAHelpher)

Remove it from the list of Add-ins?

***

The error descrpition is not very helpful.  I can not tell if it can not find the dll or if there is an error within the dll.   I followed the example at http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Automation;action=display;num=1103556650

5
Automation Interface, Add-Ins and Tools / Re: C# Plugin
« on: February 22, 2005, 02:17:32 pm »
I should add that everything I have tried causes a error to occur when I start EA.  The error is :

There was an error loading add-in:

EAHelper(EAHelper.EAHelpher)

Remove it from the list of Add-ins?


***

In this case I used EAHelper as the project name and EAHelper.EAHelper as the calls name.

6
Automation Interface, Add-Ins and Tools / Re: C# Plugin
« on: February 22, 2005, 11:29:12 am »
Thanks.  I follwed the example and have created a DLL.

The dll is called CallLibrary2.dll, the namespace is EAHelper and the class is called EAHelper.

I tried to follow the User Guide 4.51 Section 12.3.2.1.2 to no avail

I ran regasm on the dll

What should the ProjectName be?
What should default value be?
Does the dll have to be in an specific directory?

7
Automation Interface, Add-Ins and Tools / C# Plugin
« on: February 21, 2005, 10:51:03 am »
Could someone direct me to an example of creating a plugin in C#?

Thanks

8
Your example is very helpful.  Could you take it a bit further and tell me how you registered the plugin with EA?

I am following the users guide 4.51 section 12.3.2.1.2.

What did u use for the ProjectName per step 5?
What did u use as the value per step 7?

Thanks for your help

Pages: [1]