Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Tuesday, October 30, 2007 6:44 PM

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.
 30-Oct-2007 00:25
User is offline View Users Profile Print this message


William Kim

Posts: 8
Joined: 12-Feb-2007

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

Report this to a Moderator Report this to a Moderator
 30-Oct-2007 11:33
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer 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.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 30-Oct-2007 18:30
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 30-Oct-2007 18:43
User is offline View Users Profile Print this message


William Kim

Posts: 8
Joined: 12-Feb-2007

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.