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: Accept and reject...
Topic Summary:
Created On: 23-Nov-2004 08:23
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 Wednesday, November 24, 2004 9:00 AM

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.
 23-Nov-2004 08:23
User is offline View Users Profile Print this message


Kristian Bøe

Posts: 29
Joined: 16-Jun-2003

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
Report this to a Moderator Report this to a Moderator
 23-Nov-2004 09:32
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 24-Nov-2004 08:59
User is offline View Users Profile Print this message


Kristian Bøe

Posts: 29
Joined: 16-Jun-2003

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
Report this to a Moderator Report this to a Moderator
 24-Nov-2004 21:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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