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: Links in a link module
Topic Summary:
Created On: 5-Aug-2004 09:01
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 , on Thursday, August 5, 2004 3:07 PM

Answer:
Thanks for the responses...

Just what I needed.

Paul
 5-Aug-2004 12:10
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

--- Code edited to incorporate Louie's suggestion below...much tidier now :-) ---

Hi Paul,

you're right in that the links are stored in the source module. However, the getSource function allows us to get a source object from the linkset (which one I don't know!?...the DXL manual isn't too clear on that!), which can then be used to open the source module and iterate though that to get all the links.

The following code does just that, printing some info about all of the links found for each linkset in the link module.

Best Regards,
Antonio.

Edited: 5-Aug-2004 at 15:18 by Antonio Norkus
Report this to a Moderator Report this to a Moderator
 5-Aug-2004 14:58
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Once you have the object handle of an object in the Link Module (i.e. the linkset), you can find the associated source and target modules using special attributes of the LinkModule:
string NameSource = objectInLinkModule."Source" // and "Target"

This returns the full name and you can open it from there.

Those getSource and getTarget commands look real curious; they seem to return the first object in the formal module. If you use them I'd check to insure they objects returned are not null; not just the error message.

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