Book a Demo

Author Topic: Reset auto name counter.  (Read 4551 times)

jepessen

  • EA User
  • **
  • Posts: 106
  • Karma: +1/-1
    • View Profile
Reset auto name counter.
« on: June 01, 2016, 08:50:54 pm »
I've started to add requirements to my project.
I've set the auto counter for requirements and they appear correctly.

Now requirements are changed (please don't ask  :-X ) and I need to rewrite them in my project. I've deleted all requirementes  but when I add a new one the counter starts (correctly) from the last one.
Instead I want to restart the counter from zero. Is there a way to reset a counter inside a project without creating a new one?

Or it's possible to use a script to manually set the counter? I'd like to create something like "use the first free index", so if at same point requirement indices are 1, 2, 4, 5, 6, the next one that I create will have index 3.

« Last Edit: June 01, 2016, 09:01:01 pm by jepessen »

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Reset auto name counter.
« Reply #1 on: June 01, 2016, 09:09:41 pm »
Project/Settings/Auto Names and Counters...
Select your Auto Name Counters Type and set the Counter filed to the value you desire (1 or 0001 or...).
Best regards,

Peter Heintz

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1409
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Reset auto name counter.
« Reply #2 on: June 01, 2016, 11:22:00 pm »
Hi,

Instead of deleting and creating all your requirements again, I'd recommend using the Alias or a Tagged Value field to generate and store your references. Then use the order on a diagram or in a package to automatically set these references using a Prefix and/or counter and/or Suffix. To achieve this, you can use my free addin eaUtils (www.eautils.com).

However if you need to apply the reference in the requirements' name, the addin won't help (use EA auto name/counter).

Hope it can help.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


jepessen

  • EA User
  • **
  • Posts: 106
  • Karma: +1/-1
    • View Profile
Re: Reset auto name counter.
« Reply #3 on: June 02, 2016, 03:22:52 am »
Thanks to both of you. I'll check your solutions.