Book a Demo

Author Topic: Update Diagrams  (Read 5206 times)

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Update Diagrams
« on: February 08, 2014, 03:41:16 am »
Hi
My addin sets up a generalization relationship when a class of a given sterotype is added to a diagram.
However, if the class being generalized appears on the diagram then the relationship is not drawn.
How can I make this happen from my addin

Thanks

Maggie

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Update Diagrams
« Reply #1 on: February 08, 2014, 09:00:38 am »
EA will render any such relations- You don't need to do that. If both elements are on the diagram EA will render the generalization (if it exists and not suppressed on the very diagram). So I don't see where you problem is.
 
q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Update Diagrams
« Reply #2 on: February 10, 2014, 09:18:28 am »
Is your problem that you need to tell EA that a new connector exists that needs to be included on the diagram?

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Update Diagrams
« Reply #3 on: February 10, 2014, 07:45:43 pm »
Thanks for the replies
Simon - Yes this is what I need to do, please advise how I can achieve this

Maggie

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Update Diagrams
« Reply #4 on: February 11, 2014, 06:03:09 pm »
Maggie,

You'll need to reload the diagram.
See Repository.RefreshOpenDiagrams(boolean FullReload) or Repository.ReloadDiagram(long DiagramID)

Geert


Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Update Diagrams
« Reply #5 on: February 11, 2014, 07:01:49 pm »
Thanks
Maggie