Book a Demo

Author Topic: Changing the default diagram of a package  (Read 4383 times)

Alfred Crombez

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Changing the default diagram of a package
« on: July 16, 2008, 07:43:33 pm »
In the documentation it is mentioned that each package has a default diagram that is opened if a package is opened from another diagram. If no default is specified, it opens the first diagram of the package in alphabetical order.

However, I couldn't find a way to change the default diagram for a package. Does someone know how to do this?

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • ArenĀ“t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Changing the default diagram of a package
« Reply #1 on: July 17, 2008, 12:05:46 am »
Quote
In the documentation it is mentioned that each package has a default diagram that is opened if a package is opened from another diagram. If no default is specified, it opens the first diagram of the package in alphabetical order.

However, I couldn't find a way to change the default diagram for a package. Does someone know how to do this?

Yes. Just put a diagram below the package and double click it from a different diagram. This works out of the box.

If we are talking about composite elements and double clicking on them things are a bit moire difficult.

Oliver

Alfred Crombez

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Changing the default diagram of a package
« Reply #2 on: July 17, 2008, 12:10:54 am »
This works fine if you have only one package diagram. I have different package diagrams for the same package. One of these diagrams I want to make the default one. Currently it is using the first diagram according alphabetical order.
« Last Edit: July 17, 2008, 12:11:33 am by acrombez »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Changing the default diagram of a package
« Reply #3 on: July 17, 2008, 09:24:41 am »
The statement in the Help is misleading, so I have edited it. You can't actually set the default diagram. The only way to change the diagram that is displayed when you select the Open Package option is to edit the diagram name so that it becomes the first in alphabetical order. Be aware that a 'buried' diagram in a nested package or element with a name higher in alphabetical order will open in preference to a diagram with a name lower in the order immediately under the package.

EDIT: HOWEVER, if you click on the background of the diagram containing the package, and then double-click on the package, it DOES open to the first diagram in the list, regardless of alphabetical order.

This is a bit sneaky, so maybe you could just expand the size of the package element on the diagram, drag your preferred diagram onto it and in response to the prompt, drop the diagram as a hyperlink.  The package element anyway does not identify its child diagrams, so this is a way of saying 'open THIS diagram, please'. If you later want to drill to a different diagram, delete that hyperlink and create a new one for the new preferred diagram.
« Last Edit: July 17, 2008, 03:47:18 pm by RoyC »
Best Regards, Roy

Alfred Crombez

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Changing the default diagram of a package
« Reply #4 on: July 17, 2008, 05:13:28 pm »
Thanks Roy, double clicking the package indeed opens the first diagram of the package. This works fine in my case because main purpose is to easily navigate the model by drilling down on packages.