Book a Demo

Author Topic: Convert a requirement to a <<Block>>  (Read 4012 times)

DanaMaxwell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Convert a requirement to a <<Block>>
« on: May 07, 2018, 10:46:49 pm »
I have access to a SWBS in a Doors Module and would like to import it as a SWBS. Problem is, when importing from DOORS it will only create requirements. Is there a way to convert the elements to <<Blocks>>?

Thanks

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Convert a requirement to a <<Block>>
« Reply #1 on: May 07, 2018, 11:00:28 pm »
Design/Element/Manage/ChangeType should allow you to convert it to a class. Afterwards you can assign e.g. sysml:bock stereotype.
Best regards,

Peter Heintz

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Convert a requirement to a <<Block>>
« Reply #2 on: May 07, 2018, 11:18:03 pm »
As you have mentioned you are trying to import.
Writing a script to convert will work for bulk convert

You can refer local scripts -> manage element extras.

Even you can export to excel and import as block using MDG office

Nabil

DanaMaxwell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Convert a requirement to a <<Block>>
« Reply #3 on: May 08, 2018, 03:29:55 am »
Thanks for the tip.

I am using VB and am looking at a hierarchy of requirements. On a given element I am getting IsLeaf False which makes sense because I know there are other requirements below it on the structure (I can see/navigate to them in the browser) but I cannot find Elements, Requirements or RequirementsEx. Count is = 0 for all three? How do I navigate down to these requirements?

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Convert a requirement to a <<Block>>
« Reply #4 on: May 08, 2018, 05:31:44 am »
How are they connected? Through hierarchy? Then use Element.Elements to get the collection of contained elements. If the are associated use Element.Connectors to find the related elements via the connectors.

q.