Author Topic: Auto Naming and Auto Counter specific to a stereotype?  (Read 4217 times)

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Auto Naming and Auto Counter specific to a stereotype?
« on: February 12, 2016, 09:47:47 pm »
In our repository, Auto Naming and Auto Counter are activated for the following classifiers:
- Requirements
- Use Cases
As a result, Auto Naming and Auto Counter also apply to any stereotype of these classifiers.
For example, a "UC" prefix is applied to new element that are stereotyped use cases though the stereotype is not meant to represent a use case.

Is there any way to get Auto Naming and Auto Counter settings that are specific to each stereotype?

PeterHeintz

  • EA User
  • **
  • Posts: 967
  • Karma: +58/-18
    • View Profile
Re: Auto Naming and Auto Counter specific to a stereotype?
« Reply #1 on: February 18, 2016, 02:33:07 am »
I tried to do this as well, without success.
I would also be interested in a way this could be done.
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Auto Naming and Auto Counter specific to a stereotype?
« Reply #2 on: February 18, 2016, 07:18:41 am »
You can create your own numbering scheme by subscribing to the EA_OnPostNewElement event and handle the naming yourself.

q.