Book a Demo

Author Topic: RefreshModelView reloads all diagrams in v12  (Read 6221 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
RefreshModelView reloads all diagrams in v12
« on: April 28, 2015, 10:40:47 pm »
Hi

I'm using Repository.RefreshModelView(packageID) with the packageID of the package I want to reload (because I played with the treepos of the elements in the package)

This seems to work, except that it also reloads all my opened diagrams.
I haven't tested this in a previous version yet, but I don't think this used to behave like this?

I would like it to do exactly the same as right click|contents|Reload Current Package

Anyone notice this as well, and maybe has a workaround?

Geert
« Last Edit: April 28, 2015, 10:41:15 pm by Geert.Bellekens »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: RefreshModelView reloads all diagrams in v12
« Reply #1 on: April 29, 2015, 01:02:48 am »
How do you know it reloads the open diagrams? They are not visible.

q.
« Last Edit: April 29, 2015, 01:03:05 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RefreshModelView reloads all diagrams in v12
« Reply #2 on: April 29, 2015, 04:32:48 am »
They all close and open again, like you reload the whole model iso just the one package.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: RefreshModelView reloads all diagrams in v12
« Reply #3 on: April 29, 2015, 05:34:27 am »
I just tried with V10 and it also closes/re-opens the diagrams.

q.
« Last Edit: April 29, 2015, 05:34:48 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RefreshModelView reloads all diagrams in v12
« Reply #4 on: April 29, 2015, 04:11:39 pm »
Why would it do that if I reload a specific package? That make little or no sense to me.

The "problem" I'm having with it is that it disrupts the user and shows a popup for each diagram that has been changed but not saved.

Maybe I need to send in a feature request for a package reload without re-loading all opened diagrams.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RefreshModelView reloads all diagrams in v12
« Reply #5 on: April 29, 2015, 04:31:26 pm »
I'm not sure of the rationale behind what it's doing, but it looks like it's been doing it for as long as the API has existed. (v4.6 it started maintaining active diagrams)

I'm guessing you're after the equivalent of the Project Browser context menu - Contents | Reload Current Package.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RefreshModelView reloads all diagrams in v12
« Reply #6 on: April 29, 2015, 05:02:34 pm »
Quote
I'm guessing you're after the equivalent of the Project Browser context menu - Contents | Reload Current Package.


Yes indeed. Shall I send in a feature request?

Geert
« Last Edit: April 29, 2015, 05:02:47 pm by Geert.Bellekens »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RefreshModelView reloads all diagrams in v12
« Reply #7 on: April 30, 2015, 09:20:48 am »
Go for it.

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: RefreshModelView reloads all diagrams in v12
« Reply #8 on: July 17, 2015, 07:18:07 am »
Definitely worth it including such an equivalent in the API!