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: Link handle to a new link
Topic Summary:
Created On: 23-Aug-2006 11:45
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 Reik Schroeder, on Wednesday, August 23, 2006 2:58 PM

Answer:
Hi Pekka,

this is much simpler, than you thougt


Link l = obj1 -> linkmodule -> obj2
l."Link Attribute Name" = "Hello Wolrd!"


Greetings
Reik
 23-Aug-2006 11:45
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

If you create a new link between objects e.g.

obj1 -> linkmodule -> obj2

and then want to modify link attributes (which already are created in linkmodule) for this new link, how can one get the handle to the link? Is the only way to search through the links in object:

for l in obj1 -> linkmodule do
{
if (target l == obj2) break
}

l."Link Attribute Name" = "some value"

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 12:59
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Answer Answer
Hi Pekka,

this is much simpler, than you thougt


Link l = obj1 -> linkmodule -> obj2
l."Link Attribute Name" = "Hello Wolrd!"


Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 14:59
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Thanks Reik - should have tried that on my own ;-)

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 19:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The following gets the link if it exists, but doesn't create it?
Link lnk = oSource -> NameLM -> oTarget


Is that in the manual?

- Louie
Report this to a Moderator Report this to a Moderator
 24-Aug-2006 07:46
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Louie,

be carefull, the expression will create the Link!
It will only not create a link, if it already exists ... so you might have created links while testing

Here the definitions (of course not in reference manual):

Link ::<- (Object, Object) MkLinkInDef
Link ::-> (Object, Object) MkLinkOutDef
Link ::<- (InLinkRef__, Object) MkLinkIn
Link ::-> (OutLinkRef__, Object) MkLinkOut

OutLinkRef__ all(OutLinkRef__) AllOutLinkRef
OutLinkRef__ ::-> (Object, string) OutLinkRef
InLinkRef__ all(InLinkRef__) AllInLinkRef
InLinkRef__ ::<- (Object, string) InLinkRef


Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany

Edited: 24-Aug-2006 at 07:47 by Reik Schroeder
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.