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: detecting object that does not have links
Topic Summary: detecting object that does not have links
Created On: 1-Feb-2006 16:41
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.
 1-Feb-2006 16:41
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

I am using the loop

for objects in current module{

}

I would like to pick up objects that DO not have links within my loop but am not sure how to do this. Thanks for any advice

Report this to a Moderator Report this to a Moderator
 1-Feb-2006 18:30
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Use the following

for outLink in all (Object srcObject) -> (string linkModName) do


for inLink in all (Object tgtObject) <- (string linkModuleName) do
Report this to a Moderator Report this to a Moderator
 1-Feb-2006 19:04
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

Hi Ron thanks for replying, still a little fogged here ie specifically I need to locate objects that do not have out links, how does this achieve that? Thanks martin
Report this to a Moderator Report this to a Moderator
 1-Feb-2006 19:30
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Find if object has a link -- if it does your not interested in it -- if it doesn't have a link -- bingo that is the one your looking for.
Report this to a Moderator Report this to a Moderator
 1-Feb-2006 19:54
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

I would apply a filter prior to your loop. See below.

-------------------------
Cliff Bly


Edited: 1-Feb-2006 at 19:56 by cliff Bly
Report this to a Moderator Report this to a Moderator
 2-Feb-2006 21:02
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The "for obj in mod" loop only gets currently displayed objects. That puts your DXL at the mercy of such things as the default view for a module. You can explicitely control the view of the module, but using the better "for obj in entire mod" loop works better, as attached.

You'll need to read the manual on loading the target (outlink) or source (inlink) module, before you can deal with the target or source object therein.

- Louie
Report this to a Moderator Report this to a Moderator
 3-Feb-2006 08:25
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

If you want to be really careful, also make sure you don't miss links to baselines by using "all" in the link loop:

for l in all(obj->"*") do ...

and

for lr in all(obj<-"*") do ...

-------------------------
Tony Goodman
http://www.smartdxl.com
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.