Book a Demo

Author Topic: Project Browser Package View  (Read 5438 times)

DerekC

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Project Browser Package View
« on: January 22, 2016, 11:51:57 pm »
Hi
I have developed a script to create a number of packages and sub packages. When the script completes, and the project browser view is refreshed, each of the packages created is in an expanded state. That is, the sub packages are displayed.

Is there a way to "close" the package view, within my script, so that only the parent packages are displayed?

Many thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project Browser Package View
« Reply #1 on: January 22, 2016, 11:59:46 pm »
Not as such, but Repository.RefreshModelView() might have a similar effect.

Geert

DerekC

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Project Browser Package View
« Reply #2 on: February 01, 2016, 07:15:03 pm »
Thanks Geert,
It works, but the drawback is it collapses every single package back to the model level, even impacting other models that have been opened. I think the users will find this annoying for models they have already navigated.

I'd like to be able to choose what packages the script closes.

Derek.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project Browser Package View
« Reply #3 on: February 01, 2016, 07:45:38 pm »
I'd like to be able to choose what packages the script closes.

Me too, I would like it even more if the packageID I'm dutifully passing to the operation would actually have the effect you would expect. (that is: only reload the package with that ID)

Geert