![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: link by attribute help Topic Summary: Created On: 15-Mar-2007 12:05 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I think this is what you're looking for. Instead of looping through fModule2 each time it'd be better to put all of fModule2's objects in a Skip List and use whatever you want to match by as the key. Then use find() to find the match. Would be extremely faster but I didn't know what exactly you were looking to match. I interpreted it as you are looking to find the first 5 characters of attrKeyFM1 inside the string of attrKeyFM2 (and coded it as such). | |
![]() |
|
First of all I am not a programmer or a DOORS expert ... but I have a simple requirement (i hope). Edited: 15-Mar-2007 at 12:08 by Sal Kabay |
|
![]() |
|
![]() |
|
I think this is what you're looking for. Instead of looping through fModule2 each time it'd be better to put all of fModule2's objects in a Skip List and use whatever you want to match by as the key. Then use find() to find the match. Would be extremely faster but I didn't know what exactly you were looking to match. I interpreted it as you are looking to find the first 5 characters of attrKeyFM1 inside the string of attrKeyFM2 (and coded it as such).
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 15-Mar-2007 at 12:56 by David Pechacek |
|
![]() |
|
![]() |
|
Awesome David ... I owe you a beer!! I had to make a few minor tweaks see attached code to make it work for me ... one thing I was intrigued with was being able to do the link directly via the statement
s <- "your link module name" <- o Edited: 15-Mar-2007 at 18:29 by Sal Kabay |
|
![]() |
|
![]() |
|
OK ... David, tried out the following to give me 2-way linkage and worked a treat!! This will save me so much time!!
s <- "DOORS Links" <- o o <- "DOORS Links" <- s |
|
![]() |
|
![]() |
|
quote:The link would be created as an outlink from o to s. So yes if you are looking at s it is an inlink, o an outlink. quote:Simply swap s and o around and use a different link module (I don't think you can create a link both ways through the same link module). Why would you want to create the link both ways though? Only reason I see is so you can find the link from one object to the other in either object. However, you can still find the link in s (would be an inlink) by doing a loop through the links using: ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 15-Mar-2007 at 14:55 by David Pechacek |
|
![]() |
|
![]() |
|
quote:Ok I guess you can. Personally I wouldn't though. And as I said above, its not necessary in order to get to o from s. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
link by attribute help
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.