Doors Next Generation creates attribute type name with numbers appended to it
I exported 2 DOORS 9.6.1 modules. Both modules have an attribute type called MyRequirement.
Before exporting to a reqifz file, I made sure module 1's MyRequirement attribute type has the same RDF URL as module 2's MyRequirement attribute type.
After I imported this reqifz into DOORS Next Generation 5.0.2 ifix 6, I found that I have both "MyRequirement" and "My Requirement 2" attribute types in Project Properties.
Why is it the case? Is there a way to import without duplicating the attribute type?
Before exporting to a reqifz file, I made sure module 1's MyRequirement attribute type has the same RDF URL as module 2's MyRequirement attribute type.
After I imported this reqifz into DOORS Next Generation 5.0.2 ifix 6, I found that I have both "MyRequirement" and "My Requirement 2" attribute types in Project Properties.
Why is it the case? Is there a way to import without duplicating the attribute type?
Accepted answer
I am not a big fan of hacking. But due to the deadline of my DOORS-to-DNG migration is imminent, I have no choice but to hack reqif.
Below is how I hacked the reqif.
1. Change type ID and its base type ID of duplicated attribute type to be the type ID and its base type ID of the attribute type of the same name that appears first.
For example (concept only, not the actual texts in reqif), I changed
basetype_ID=b01 type_ID=t01 type_name="MyRequirement"
basetype_ID=b02 type_ID=t21 type_name="MyRequirement"
basetype_ID=b03 type_ID=t31 type_name="MyRequirement"
to
basetype_ID=b01 type_ID=t01 type_name="MyRequirement"
basetype_ID=b01 type_ID=t01 type_name="MyRequirement"
basetype_ID=b01 type_ID=t01 type_name="MyRequirement"
2. change all objects' associated type ID appropriately
For example (concept only, not the actual texts in reqif), I changed
type_ID=t01 object1
type_ID=t21 object2
type_ID=t31 object3
to
type_ID=t01 object1
type_ID=t01 object2
type_ID=t01 object3
I have achieve some degree of success:
1. same attribute type names from different DOORS modules are imported into DNG without duplication.
2. objects of the "same" attribute type from different DOORS modules are imported into DNG with correct attribute type.
3. no need to rely on attribute URI in DOORS, just make sure attribute types in different DOORS modules have the same name
1. same attribute type names from different DOORS modules are imported into DNG without duplication.
2. objects of the "same" attribute type from different DOORS modules are imported into DNG with correct attribute type.
3. no need to rely on attribute URI in DOORS, just make sure attribute types in different DOORS modules have the same name
Hope that helped.