![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Use the following
for outLink in all (Object srcObject) -> (string linkModName) do for inLink in all (Object tgtObject) <- (string linkModuleName) do |
|
![]() |
|
![]() |
|
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
|
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
I would apply a filter prior to your loop. See below.
------------------------- Cliff Bly Edited: 1-Feb-2006 at 19:56 by cliff Bly |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
detecting object that does not have links
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.