Book a Demo

Author Topic: Addins  (Read 4108 times)

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Addins
« on: September 16, 2011, 09:43:31 pm »
Hi
How does one debug an addin using visual studio?
I cant run it as an application as it is a class library

Thanks

Maggie

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Addins
« Reply #1 on: September 16, 2011, 10:54:20 pm »
Hi Maggie

One option is to set EA.exe as the external program on the Debug tab for your add-in solution project.

When you build / debug your add-in, Visual Studio will launch EA and then you will be able to test your add-in.

The option is, after building, launch EA as usual and then you should be able to access your add-in

For more info, goto the Sparx Community site, where you will find excellent add-in tutorials and other resources by Geert Bellekens

Also the EA user guide is pretty good at getting started with add-ins
Don't forget to create the registry entries that EA needs since Visual Studio won't do that for you.

Best of luck

Cheers

Phil
Models are great!
Correct models are even greater!

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Addins
« Reply #2 on: September 16, 2011, 11:02:04 pm »
Thanks!! :)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Addins
« Reply #3 on: September 17, 2011, 07:47:58 am »
Hi,

There are some things to look out for when debugging an EA add-in:

1. To run the add-in as it would normally run in production, you need to register the add-in for COM and create an EA add-in registry entry so EA can find the add-in.
2. You can't overwrite the registered add-in assembly with a newly-built assembly with EA running - EA will lock the current assembly and prevent overwriting it.
3. For the same reason, you can't use Visual Studio integration with EA while developing your add-in - the running instance of EA started by VS integration will do the same as in 2., above.

HTH,
Fred W
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.