Book a Demo

Author Topic: Questions about Add-in possibility  (Read 4022 times)

damien

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Questions about Add-in possibility
« on: May 07, 2008, 09:55:46 pm »
Hello,

First, i apologize for my english.

I am a beginner with Enterprise Architect, and i would know if it's possible to use Add-in to modify a model. I would automatically create a link(instance)  to a element in diagram when i create an another element. And i think i could do it with the EA_OnPreNewElement function.

I have an another question about deploying add-in. I try to deploy examples with the help but when i look in the Add-in Manager the status of the add-in is error - missing. Someone can explain me why ? I think i certainly forget to do something.

Thank You
Bye



Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Questions about Add-in possibility
« Reply #1 on: May 07, 2008, 10:04:36 pm »
Quote
I think i certainly forget to do something

Like registering the dll containing your AddIn for COM (via regsvr32.exe when it's been made with Visual Studio 6, via regasm.exe when it's been made with .Net, or via msi for a respectable deployment).

damien

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Re: Questions about Add-in possibility
« Reply #2 on: May 07, 2008, 10:38:20 pm »
Thank for your reply. I try to register the dll with the regsvr32.exe with the follow command line :

regsvr32 CS-AddinFramework.dll

But i have this error :

CS-AddinFramework.dll has been load but the entry point DllInstall isn't found.

This file can't be register.

 :(
« Last Edit: May 07, 2008, 11:13:49 pm by damien »

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Questions about Add-in possibility
« Reply #3 on: May 07, 2008, 11:17:25 pm »
That's because Visual Studio .Net does not create the entry point for regsvr32 when you compile a dll (even you have the "register for COM interop" option switched on). You need to use regasm.exe.

damien

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Re: Questions about Add-in possibility
« Reply #4 on: May 08, 2008, 12:26:13 am »
Thank you very much, it works  :)