![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Requirement Numbering Topic Summary: Created On: 22-Aug-2005 15:45 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm fairly new to DOORS - so this may be an easily answered question.
I'm transfering a requirements document, created in Microsoft Word, into Doors. I plan to manage the document in Doors - but to export the document into Word for external review. Here's the problem: The requirements currently include identifiers in the following form: The item shall [ABC00100] weigh less than 2 lbs. Stylistically, I like to see the requirements numbering as shown above. However, I can't figure out an easy way to link the "ID" attribute to this number in a manner that would export correctly. I appreciate any suggestions -Steve |
|
![]() |
|
![]() |
|
Steven
Here is a code that will take the "ID" attribute and populate the Object text with it. Remember the ID attribute includes the prefix and the absolute number. If you only want the absolute number replace the identifier (o) in the code. Hope this helps ------------------------- jobina.l.johnson@boeing.com ![]() |
|
![]() |
|
![]() |
|
Jobina's code will insert the Object Identifier of the object after the first "shall" in the object text. It will also erase all text formatting such as bold, superscrips, and erase all OLE diagrams.
The Object Identifier is composed of the module-level attribute value "prefix" (under user control) and the absolute number of the object (assigned by the system). If your Prefix is "SysSpec_" then the identifier of the first object created will be "SysSpec_1". If you change the prefix all the identifiers will change. So you cannot change the identifier to match numbers extracted from the text. Someone who understands Regular Expressions will volunteer to show you how to extract your expressions (ABC00100) out of the text and to assign it to a string attribute you create, lets call it "ReqID". That's probably the best you can do. - Louie |
|
![]() |
|
![]() |
|
I'm importing Word documents from a supplier with tagged text like this: [ABC0123]Requirement text.[end]
The DXL has: regexp tracetag = regexp "\\[([a-zA-Z0-9_ ]+)\\] *" regexp endtag = regexp "\\[end\\]$" The double backslash allows the square bracket to be seen as is, rather than as part of a list. The list [a-zA-Z0-9_ ]+ covers any character string between the brackets, including the "[end]", so I have to look for that case separately. When I find a tag, I populate the "Supplier Ref" attribute with the tag and delete it from the text. I plan to trace requirements internally with the DOORS IDs and to the Supplier with the Supplier Ref tags. |
|
![]() |
Telelogic DOORS
» General Discussion
»
Requirement Numbering
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.