Book a Demo

Author Topic: Set tagged value with level number?  (Read 3971 times)

msherman

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Set tagged value with level number?
« on: March 31, 2010, 09:16:20 am »
I'm working with some requirements in the SysML toolbox, and would like to know if there is any way to set the id tag with a calculated value. Alternatively, is there any way to generate a requirement number (if this is not recommended, please tell me - new to UML) based on the level number? I was thinking of using a combination of the package's alias which I set to an abbreviation, then concatenating this with the level number to generate a number for the requirement. I can do this in the RTF generator, but we would like to be able to see this in the diagram. Right now I'm hand-typing it in the id tag field, but this is obviously cumbersome.

Any recommendations?

PS I'm not using an automated interface - should I? Do I need to?

THANKS!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set tagged value with level number?
« Reply #1 on: March 31, 2010, 06:21:16 pm »
You should be able to set this number using the API.
There are some pre/post events that you can hook into to calculate the field.
Should be a matter of a few hours to set something like this up.

Geert

msherman

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Set tagged value with level number?
« Reply #2 on: April 01, 2010, 01:01:15 am »
Are you referring to using the Automation Interface via an Add-In or Scripter?
« Last Edit: April 01, 2010, 01:02:32 am by msherman »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set tagged value with level number?
« Reply #3 on: April 01, 2010, 04:07:59 am »
Either, I don't think there's much difference

Geert

msherman

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Set tagged value with level number?
« Reply #4 on: April 01, 2010, 04:39:40 am »
Thank you very much this has been very helpful! I'm trying to work with the Script Editor right now to see what the possibilities are... Hopefully the event hooks will be available in that environment as it is a little easier to work with than the Add-In interface AFAIK. I haven't had much luck getting the example Add-Ins to show up in the Add-Ins menu, though I am using VS2008 and not VS2003 like the examples and there are some tricky differences that I've noticed so far.

Anyway, thanks again!