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: Accessing object info when module display = false
Topic Summary:
Created On: 18-Jul-2006 18:57
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 Louie Landale, on Wednesday, July 19, 2006 1:16 PM

Answer:
For scripts that deal with objects in a module, its very problematic to rely on the current display in order to choose which objects are eligible for script attention. Most of the scripts you write that deal with objects should have a loop that looks like the attached. The key is to loop through ALL objects by use of 'entire' and then explicitely exclude certain objects.

You can still use 'entire' for scripts that encourage the user to set the display set; just add "if (!isVisible(obj)) continue" to the attached.

- Louie
 18-Jul-2006 18:57
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

Report this to a Moderator Report this to a Moderator
 18-Jul-2006 19:06
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

Iam trying to access objects within a module that is opened read only, display = false Module mod = read (mod_name, false) The problem is that the default view has a filter which excludes the objects I need to access. I tried to load the standard view View v = view ("Standard view") bool loadview = load (mod, v) if (!loadview) print "VIEW DID NOT LOAD\n" refresh mod I also tried filtering off but that didn't help. If I open the module using true instead of false, then it works fine.
Report this to a Moderator Report this to a Moderator
 18-Jul-2006 19:08
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

Report this to a Moderator Report this to a Moderator
 18-Jul-2006 19:10
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

sorry for the bad formatting but for some reason I can't get my text to appear or get it to load via an attachment.
Report this to a Moderator Report this to a Moderator
 18-Jul-2006 20:07
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

You have very little control when a module is loaded in background.

In a loop you may be able to access the object by using the all keyword

for o in all m
Report this to a Moderator Report this to a Moderator
 18-Jul-2006 21:46
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
For scripts that deal with objects in a module, its very problematic to rely on the current display in order to choose which objects are eligible for script attention. Most of the scripts you write that deal with objects should have a loop that looks like the attached. The key is to loop through ALL objects by use of 'entire' and then explicitely exclude certain objects.

You can still use 'entire' for scripts that encourage the user to set the display set; just add "if (!isVisible(obj)) continue" to the attached.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.