Book a Demo

Author Topic: SysML requirement id tagged value  (Read 5961 times)

rgahrens

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
SysML requirement id tagged value
« on: July 02, 2021, 12:02:13 am »
I hope that someone in the forum might be able to help me with assigning values to the SysML id tag. I have already imported my requirements into EA using a .csv file where I categorized each requirement (during import) using the SysML1.4::requirement stereotype. I also added a few requirements using the specification manager. In both instances, I generated a new requirement number, which is now a part of the requirement name. As an example: "REQ221-Input Power" What I would now like to do is assign values to the SysML tag "id" - which I probably should have done on import, but when I set up the .csv import, I did not realize that I could have assigned a value to this tag.

So, is there an easy way - possibly via scripting - that this can be done? I have several hundred requirements in the model and I am trying to avoid having to go through each one and assign the "id" by hand. On a related topic, I have enabled auto-numbering for any new requirements, but the assignment is again made to the requirement name. Does anyone know if auto-numbering can be activated for the id value for requirement stereotypes?

Thanks for your time and help.
Bob 

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: SysML requirement id tagged value
« Reply #1 on: July 02, 2021, 12:16:10 am »
Scripting that is not too difficult. You run a query for your requirents and if I understood correctly you can match them by name. Now you can retrieve the "id" tagged value and assign its value to what you had forgotten.

q.

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: SysML requirement id tagged value
« Reply #2 on: July 02, 2021, 01:32:37 am »
You could also export the requirements (include the guid so the imports will update the existing requirements, not add new ones), assign the tag value, and re-import them.

rgahrens

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: SysML requirement id tagged value
« Reply #3 on: July 02, 2021, 02:33:58 am »
You could also export the requirements (include the guid so the imports will update the existing requirements, not add new ones), assign the tag value, and re-import them.

bknoth2 - Thanks for the suggestion. I'll give that a try before I try qwerty's scripting suggestion. I have a number of satisy links tied to each requirement, so I'll be curious to see if the export/re-import maintains those links.

rgahrens

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: SysML requirement id tagged value
« Reply #4 on: July 02, 2021, 03:33:57 am »
Export and re-import worked great - Thanks for the help
Bob