Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: DanaMaxwell on May 07, 2018, 10:46:49 pm

Title: Convert a requirement to a <<Block>>
Post by: DanaMaxwell 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
Title: Re: Convert a requirement to a <<Block>>
Post by: PeterHeintz 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.
Title: Re: Convert a requirement to a <<Block>>
Post by: Nabil 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

Title: Re: Convert a requirement to a <<Block>>
Post by: DanaMaxwell 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
Title: Re: Convert a requirement to a <<Block>>
Post by: qwerty 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.