Book a Demo

Author Topic: Prohibit redundant element generation  (Read 3329 times)

Conner B.

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Prohibit redundant element generation
« on: January 25, 2019, 03:20:19 am »
Hello,

we've been using Enterprise Architect for some time now, and we've often encountered the problem that users don't always use the existing elements, but create new elements with the same names, leading to inconsistencies. Is there a way to prohibit elements with the same names from being created?

Many greetings,
Conner

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Prohibit redundant element generation
« Reply #1 on: January 25, 2019, 04:43:04 am »
Yes, you could, but first you'll have to decide on the rules to follow.

Then you can implement them in an add-in, or use EA-Matic and implement the rules in a script.

The event you will probably like to capture are
- EA_OnPostNewElement
- EA_OnContextItemChanged

Geert

satrman

  • EA User
  • **
  • Posts: 50
  • Karma: +2/-0
    • View Profile
Re: Prohibit redundant element generation
« Reply #2 on: March 04, 2019, 10:18:49 am »
Hi, for some key element we did set up a Catalogue governance.
Technically, we created Custom SQL search, that flattens Project Browser Tree structure and using quick search in the resultset, user easily finds out whether the element allready exists. If you dock the search window, you can then drag&drop found element on required diagram or using alt+g you can find its location...
We are succesfully using it for Component Catalogue as well as Attributes Catalogue.
Cheers
Miloš Lang