Book a Demo

Author Topic: EA_OnPostOpenDiagram Event  (Read 5658 times)

sandipc

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
EA_OnPostOpenDiagram Event
« on: January 11, 2012, 07:30:44 pm »
In my addins EA_OnPostOpenDiagram event is not firing when I am opening the diagram.I have implemented the event as follows:

public override void EA_OnPostOpenDiagram(EA.Repository Repository, int DiagramID)
        {
        
        }

Can any one say what is the problem??


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_OnPostOpenDiagram Event
« Reply #1 on: January 11, 2012, 07:52:18 pm »
I'm using it in my EA Navigator addin, and it seems to be working just fine:
https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EANavigator/EAAddin.cs
Which operation are you overriding?

Geert

sandipc

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: EA_OnPostOpenDiagram Event
« Reply #2 on: January 11, 2012, 09:29:42 pm »
I am overriding the event EA_OnPostOpenDiagram  to get some information when diagram is loaded

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_OnPostOpenDiagram Event
« Reply #3 on: January 11, 2012, 10:34:32 pm »
Sorry I should have expressed myself better.
Are you overriding from an operation in a base class?
Are the other events working?

Geert

sandipc

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: EA_OnPostOpenDiagram Event
« Reply #4 on: January 11, 2012, 10:39:17 pm »
Yes,Other broadcast events are working but EA_OnPostOpenDiagram and EA_OnPostCloseDiagram events are not.

I have inherited EAAddinBase class to my addin class and override the events.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_OnPostOpenDiagram Event
« Reply #5 on: January 11, 2012, 10:56:37 pm »
That is strange indeed. I just tested that exact same thing on EA version 9.2, and it seems to be working just fine.
Are you sure you are opening the diagram, and not just making the diagram visible? (there's a difference yes :'()

Geert
« Last Edit: January 11, 2012, 10:58:10 pm by Geert.Bellekens »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: EA_OnPostOpenDiagram Event
« Reply #6 on: January 12, 2012, 08:49:25 am »
Which version of EA are you running? That broadcast was introduced at EA 8.0.855.
The Sparx Team
[email protected]

sandipc

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: EA_OnPostOpenDiagram Event
« Reply #7 on: January 16, 2012, 04:43:31 pm »
My EA Version is 7.5