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: open module , don't display
Topic Summary: How do I find an object that is not in the default filtered view?
Created On: 3-Oct-2006 21:04
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 Al Lione, on Tuesday, October 3, 2006 9:56 PM

Answer:
I managed to solve my own problem by inserting "filtering off" inbetween the two lines of code in my above post.
 3-Oct-2006 21:04
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

I am opening a module as read-only within a script without displaying it. I want to print the object text of a specifc object. I know the absolute number. I want to avoid searching the module (for o in entire m). The code below works if object#2 is visible in the default view. If the view is filtered and object#2 is not visible, then I get a null obj error. Is there any way around this?

Module m = read ("mymodule", false)


print (object(2,m))."Object Text"""

Report this to a Moderator Report this to a Moderator
 3-Oct-2006 21:56
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

Answer Answer
I managed to solve my own problem by inserting "filtering off" inbetween the two lines of code in my above post.
Report this to a Moderator Report this to a Moderator
 3-Oct-2006 23:25
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

yes, that "object(AbsNo, Mod)" command only works for currently displayed objects. That makes it practically worthless. What was Telelogic thinkng? I've just written my own ObjectFind function, but I got real carried away with it, storing objects in dual skip lists so I can keep track of two module's worth of objects. I'm pretty sure that the "for obj in entire mod do" loop is plenty fast and you won't notice a response hit unless you are doing it 100's of 1000's of times.

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