Book a Demo

Author Topic: How to add element on diagram automatically  (Read 3762 times)

misop

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to add element on diagram automatically
« on: January 20, 2006, 01:51:11 am »
Hi,

I'm new in EA and I have problem to solve.

I have package with several communication diagram and one class diagram. And I would like that when I create analysis class on one of communication diagram it will be automatically linked to the class diagram.

Or eventually I have package with one class diagram and I want that when I drag&drop class to this package, it will be added to the class diagram. It's possible?

Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to add element on diagram automatically
« Reply #1 on: January 24, 2006, 01:55:49 pm »
Handling some broadcast events in an addin sounds like what you need to do here.

The functions that I see that could be relevant are

EA_OnPostNewElement
and
EA_OnContextItemModified (Not yet available on online help)