Book a Demo

Author Topic: Refresh model tree after deleting a package  (Read 5190 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Refresh model tree after deleting a package
« on: March 23, 2016, 03:13:56 am »
Hi,

I have deleted a specific package using the EA API.
Now I want to refresh the model tree that will not show the deleted package without need to manually touch it and get a pop up that it was deleted by other user (my app).
I tried updating its Parent Package, repository.RefreshModelView(id) but non of them work.

Does anybody knows the correct API that I should be using?


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Refresh model tree after deleting a package
« Reply #1 on: March 23, 2016, 04:52:15 am »
RefreshModelView() with the parent package ID should work (or pass 0 to reload the whole model)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Refresh model tree after deleting a package
« Reply #2 on: March 23, 2016, 05:18:09 am »
Beware of help vampires. Instead of RTMF they ATBFM (ask the bloody forum members).

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Refresh model tree after deleting a package
« Reply #3 on: March 23, 2016, 09:31:27 am »
Beware of help vampires. Instead of RTMF they ATBFM (ask the bloody forum members).

Even as a native English speaker with a larger vocabulary than usual I often struggle to find the answer I need as I am unable to guess the correct sequence of words that will make the dumb search engine spit back the pages or pages that may contain the full or partial answer to my question.

Whereas Geert is able to use his NLP capacity to establish the context of the question and provide the right (and complete) answer.  He does so via this forum that Sparx provides as an adjunct to the online help.  You'll notice that there are no off topic or conversations boards provided; indicating particularly strongly that this forum is strictly for the purpose of helping people use Enterprise Architect.