![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Accept and reject... Topic Summary: Created On: 23-Nov-2004 08:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You need an else clause after the test for links so that you only reject an object if it does not have links. I would also recommend rejecting all objects first: for o in m do reject o and then loop through object again, accepting the ones you want. | |
![]() |
|
I cannot seem to get the accept and reject functions to work for me...
I tried the example program and it blanks out everything. I modified it to the following: And the printout shows 271 accepted and 260 rejected object. But the filtered view does not show any objects at all. I must be missing some poiint here. Please help! Using DOORS 7.1 Buildnr 71132 ------------------------- Kristian Bøe Extenda AB Kristian.Boe@extenda.se Edited: 23-Nov-2004 at 08:26 by Kristian Bøe |
|
![]() |
|
![]() |
|
You need an else clause after the test for links so that you only reject an object if it does not have links.
I would also recommend rejecting all objects first: for o in m do reject o and then loop through object again, accepting the ones you want. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
I moved the reject statement to before the loop through the links and everything worked just fine.
I guess the continue threw me, that just jumped out of the "link loop" not the "object-module loop"! The funny thing is that I got the basics from the DXL manual ![]() ------------------------- Kristian Bøe Extenda AB Kristian.Boe@extenda.se |
|
![]() |
|
![]() |
|
Reject the object before the link loop, then accept it if you find a suitable link. The problem with your code is that your "continue" statement after the "accept" statement aborts the nearest loop, in this case it escapes the link loop, which is followed by your reject statement.
You should also use "for obj in entire mod do" loop. The one you have respects the current display set, and you'll miss some objects if filtering or leveling is on. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Accept and reject...
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.