Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ritu on April 21, 2008, 10:34:27 pm
-
I am trying to create an addin for EA but I am facing a strange problem. Addin is not appearing on EA IDE although it is showing addin enable.
I am creating the addin through C# and following the same steps as described in the help.
Please tell me the steps to create addin in detail. I am wirking on EA trial version 7.1
-
place debug messages in your init code and see where it crashes. good luck
-
It's not crashing. I am asking the steps to create addin and the reason why it is not appearing on EA IDE
-
I am surprised to see that the same code has created the addin on another system. What the issue is?
-
The fact that it shows in the list of Add-ins only tells that it is registered correctly in EA's part of the registry. Doesn't tell that the code runs correctly. So go ahead and debug.
-
Please tell me how to register it. I have the same problem my addin is working on some systems and the same code is not working on some another system.
Please explain me so that my addin may work
-
Sorry. RTFM. It's explained in detail and EA comes with examples. So just follow the steps in the documentation (exactly!).
-
Do your addin have the function EA_GetMenuItems?
/N
-
Yes I have this function. I have taken the same code and steps explained in EA Help file. Still I don't understand the problem. I also tried by registering the dll as given in the steps but it is saying that
dll was loaded but the DLLRegisterServer entry point was not found.
This file can't be registered.
-
The ability to ready certainly enhances your powers
-
If you can help me that's fine otherwise let someone else answer of my query
-
I would recomend you to download an example project and start from that the first time you try to create a EA plugin. This way you know that the c# code is correct. http://www.sparxsystems.com/bin/CS_AddinFramework.zip
/N
-
I have been trying the same code you have suggested me. This is the same code I downloaded from EA help. I am following the same stepa and instructions.
-
This thread has been closed. Please check the following post for more details http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1208258074/15
-
When you compile the AddIn project from MS Visual Studio with the "register for COM interop" option turned on, VS will kindly create a type library (same name as dll, but with a tlb extension) and register it. VS does not, however, create an entry point in the dll for self registering, so regsvr32.exe won't help. For deployment on another system, you can either register it there with regasm.exe (contained in the .Net Framework SDK), or you can add a setup project to your AddIn solution. Building the setup project will then create an msi file for installation, and if all the relevant properties in the setup project have been set this msi will register the AddIn dll.