![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Multiple "shalls" dxl Topic Summary: Finding objects with mutiple "shalls" Created On: 30-Oct-2007 00:25 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The attached is some very old DXL that should do what you want. The words it looks for are in an array, so if you just want to look for shalls then take out the other words. It is case sensitive. | |
![]() |
|
I am reviewing a DOORS database where I have manually found instances of multiple "shall" statements within the same object.
Does anyone have a dxl script that I can run within a module that will provide an output of which object (by DOORS ID) has more than one "shall" statement and a count of the number of "shall" statements within that object? Thank you, Willie |
|
![]() |
|
![]() |
|
The attached is some very old DXL that should do what you want.
The words it looks for are in an array, so if you just want to look for shalls then take out the other words. It is case sensitive. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
I'd convert the object text to all lower case, if you want to find 'Shall' or 'SHALL' as well as 'shall':
buf = lower(o."Object Text" "") I don't think it will count the number of shalls in the text, it just counts the number of different 'imperitives'. If you remove the other 3 'will' etc from the list, an object will or won't contain 'shall' and will end up with a count of either zero or one. If you retrieved the OffsetNew = contains(buf, work, OffsetOld) you could loop until you didn't find any more shalls; where OffsetOld = OffsetNew+1 at the bottom if you did find one. - Louie Edited: 30-Oct-2007 at 18:31 by Louie Landale |
|
![]() |
|
![]() |
|
Thank you for the script plus the recommended modification. It is exactly what I needed.
By the way, where are the "very old DXLs" found in this forum? Before posting the message, I did do a search to find an existing solution. Willie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Multiple "shalls" dxl
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.