Book a Demo

Author Topic: Enforce new elements to be in certain package?  (Read 3236 times)

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Enforce new elements to be in certain package?
« on: October 03, 2013, 12:18:55 am »
It is possible to enforce the creation of elements of a certain type in a certain package?

Background: in the project browser I created a package that only contains diagrams. Dependent on the kind of element (Class, Business Role, Business Service) I want them to have in a certain package. By default, when working with a diagram, a new element is created in the same package as the diagram you are working on.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enforce new elements to be in certain package?
« Reply #1 on: October 03, 2013, 01:57:01 am »
You can use the New Element icon of the browser. That will create the element where the focus is in the browser.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Enforce new elements to be in certain package?
« Reply #2 on: October 03, 2013, 03:44:34 pm »
Jacob,

If this really is important to you you'll have to write an add-in to move the elements once they are created.

Geert

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Re: Enforce new elements to be in certain package?
« Reply #3 on: October 05, 2013, 06:10:36 am »
@qwerty: that's not a handy way of working; placing directly on a diagram is an easier way of working.

@Geert: OK, clear.

Regards,
Jacob