Book a Demo

Author Topic: My EA addin setup not working on EA 7.1  (Read 15453 times)

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
My EA addin setup not working on EA 7.1
« on: April 15, 2008, 09:14:34 pm »
I had a small project that was creating an adding on the EA version 6.1. It was working fine. When I tried the same adding by running my addin setup on EA 7.1 it is saying addin error and addin is not getting created.

Is the problem with the API's or what? please explain what the problem is?

Vibhu

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #1 on: April 15, 2008, 09:46:00 pm »
Try re-registering the add-in. Perhaps the registry settings (or something) got trashed when you upgraded. That doesn't always happen, but 6.1 to 7.1 is quite a jump.
No, you can't have it!

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #2 on: April 17, 2008, 04:46:52 pm »
Actually it is showing Addin enable when I click on Addin menus followed by manage addins but it is not showing the menu for my addin.

Is there any other way to enable the addin so that it may appear or be active.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #3 on: April 17, 2008, 05:44:54 pm »
Maybe the AddIn is compiled against an obsolete version of the EA automation dll and the new EA version suffers a COM exception when trying to create the object it needs to initialize the AddIn.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #4 on: April 17, 2008, 09:38:21 pm »
Try resetting your menu. This used to work in some obscure cases where the add-in was correctly registered but did not show up.

First, a warning: resetting your menu will remove all user customizations. Make sure you know which settings you've customized so you'll be able to set them again.

To reset the menu open the Tools | Customize dialog and select the Menu tab. Click the Reset button and exit the dialog. It is probably best to exit and restart EA.

Let us know if the Add-ins reappear.

David
No, you can't have it!

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #5 on: April 18, 2008, 02:37:20 pm »
Hi David!

Thanks for your reply.

Actually I have also reset the menu still my addin doesn't appear. Please help me

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #6 on: April 18, 2008, 03:38:46 pm »
It's possible that the Add-In might need to be recompiled against a more recent typelib / interop.  I recall sometime around EA 7.0 there were certain Add-Ins (not all) that started encountering problems until they were recompiled with the latest typelib.  If you still have access to the source code, you might want to give it a try.

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #7 on: April 18, 2008, 05:15:38 pm »
How can I get more recent typelib / interop.  I still have access to the source code, please let me know how to get the recent typelib / interop.

Is it may be the issue with trial version. I am using EA 7.1 trial version. Please let me know

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #8 on: April 18, 2008, 06:07:36 pm »
I think you just have to delete (in the project holding the AddIn's source code) the reference to the old Interop.EA and add a reference to "Enterprise Architect Object Model 2.10", which should appear in the COM tab of the Add Reference dialog (if you're using Visual Studio .Net, that is. It's quite similar with Sharp Develop or Visual Basic 6, though).

The new type library will be registered on your machine when EA 7.1 is installed, no matter if it's only the trail version.

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #9 on: April 19, 2008, 02:44:36 pm »
It is still not working.

Should I create a new addin. Please let me know the steps to create addin for EA 7.1. I am using c# .net 1.1.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #10 on: April 20, 2008, 09:38:08 pm »
Two possible things to check then: First is whether the Interop was built (somehow) against .Net 2.0. If so you might need to rebuild your source code with a VS 2005 or 2008 product. It might be enough to use C# Express.

Second, did you make the project visible to COM? If you don't do this EA will not see it (nothing useful will show up when EA looks). There are templates to do this - I don't remember whether they were in VS 2003, but I think they were. If this was not done, you'll have to add attributes to your classes and some features (attributes and operations).

Let us know what you find.

David
No, you can't have it!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #11 on: April 20, 2008, 09:58:00 pm »
I wonder if the solution reported in http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1208373036/0#4 would help here.

David
« Last Edit: April 20, 2008, 09:58:16 pm by Midnight »
No, you can't have it!

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #12 on: April 22, 2008, 02:22:24 pm »
David!

I feel the link you told is a different issue. My problem is that I am following the same code and steps as given in EA HELP. When I run that code it installs the addin on some systems but when I tried the same code on other system it's not working. It shows the addin enable but doesn't show the menu items of addin.


thomas.kilian

  • Guest
Re: My EA addin setup not working on EA 7.1
« Reply #13 on: April 22, 2008, 03:42:38 pm »
Why is it that I have to read this thread in three different flavors? Isn't one enough????

vibhugupta

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: My EA addin setup not working on EA 7.1
« Reply #14 on: April 22, 2008, 04:15:36 pm »
sorry for that. Actually i am frustrated by following the steps again and again and the issue is still not resolved. Please provide me the solution