![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
|
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
|
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.