Book a Demo

Author Topic: apply "auto name counters" to existing elements  (Read 3365 times)

OwenInCanada

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
  • have the right tool for the job
    • View Profile
apply "auto name counters" to existing elements
« on: June 03, 2008, 11:33:44 pm »
Hi all,

My existing SysML project has about 75 requirements.
And now I would like to use "auto name counters".
The documentation says auto name counters only apply to new elements ("new" since name counter was activated).
Is there any way to apply the counter all of the existing elements? Or do I have to make all those changes by hand?

Thanks,

Owen

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: apply "auto name counters" to existing element
« Reply #1 on: June 04, 2008, 01:20:15 am »
I think so Owen.

Once again, write a quick automation 'script' to take care of this. Or come up with something to tweak the database where you've stored your project. Even VBA from Word or something would be enough.

David

PS: Once you've handled this, remember to set your counters to start after your pre-named elements. [Guess who's forgotten to do this in past.]
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: apply "auto name counters" to existing element
« Reply #2 on: June 04, 2008, 04:15:43 am »
Quote
Once again, write a quick automation 'script' to take care of this. Or come up with something to tweak the database where you've stored your project.

Or, if you don't like the automation interface and SQL but are an old hand with xsl, you might consider to export to xmi, transform and import back.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: apply "auto name counters" to existing element
« Reply #3 on: June 04, 2008, 04:19:21 am »
Absolutely!

Thanks Frank, I'd not thought to include that.

David
No, you can't have it!

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: apply "auto name counters" to existing element
« Reply #4 on: June 04, 2008, 11:42:40 am »
Hello Owen,
If the requirements are all located in one package you can also look at using the Package context menu option: Show Level Numbering.