Book a Demo

Author Topic: Determine if Add-In is Loaded  (Read 3648 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Determine if Add-In is Loaded
« on: May 23, 2012, 01:52:17 pm »
I think this questionhas been asked before but I couldn't find an answer using search.

I need to determine if the BPMN Add-In has been loaded or not; since the BPMN object will render differently if it is loaded than when it is not.

That's reasonable...  However, since the effect on diagram rendering can be quite dramatic, I need to be able to tell if the Add-In is CURRENTLY loaded (remember since v9.3 Add-ins can be dynamically loaded).

TIA,
Paolo
« Last Edit: May 23, 2012, 01:54:33 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Determine if Add-In is Loaded
« Reply #1 on: May 23, 2012, 03:53:10 pm »
There's no add-in involved.

I believe you want Repository.IsTechnologyEnabled ().

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Determine if Add-In is Loaded
« Reply #2 on: May 23, 2012, 03:56:30 pm »
Paolo,

I think the info on which add-in to load is stored somewhere in the registry.
Of course that will only give you the info of which add-in is "supposed" to be loaded, not which one's are "actually" loaded.

Geert

PS. What you you mean by "add-ins can be loaded dynamically"? Or are you talking about MDG technologies?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Determine if Add-In is Loaded
« Reply #3 on: May 23, 2012, 05:42:26 pm »
Quote
There's no add-in involved.

I believe you want Repository.IsTechnologyEnabled ().
Hi Simon,

My bad.  Since my Add-In installs one or more technologies, the distiction was moot for me. :-[

However, the Help for Repository.IsTechnologyEnabled () requires the supply of:
Parameters:

· ID: String - the technology ID to check for


Since the ID is internal to the MDG and not visible on the dialog, what is the technoilogy ID to be used for the BPMN MDGs?

Can the ID for the internal (Sparx supplied) MDGs be published please?
[edit]I think I've found them in the MDG XMLs - but it would be good to have that confirmed or, better still, formally published[/edit]
Paolo
  
« Last Edit: May 23, 2012, 06:57:03 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!