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: Printing a list of Linksets
Topic Summary:
Created On: 19-Nov-2004 21:29
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 Laura Norton, on Friday, March 11, 2005 5:06 PM

Answer:
Great, this is what I need. Thanks!
 19-Nov-2004 21:29
User is offline View Users Profile Print this message


Laura Norton

Posts: 17
Joined: 6-Apr-2004

Hi,

I'm trying to update a dxl which will allow users to choose incoming, outgoing or both types of links to display information about them in a column (layout dxl) based on which attributes are chosen. The dxl is run from within a formal module. Currently, the dxl allows the user to choose the type of link, the link module, and attributes to display. I need to also allow the user to select a specific linkset within the chosen link module to display information about. I want to do this without having to make the user select the source, target and link modules, but just the link module.

I can't figure out how to display linksets. Even within a link module, I tried to print a list of Linksets that the Link module contains, and I can't get it.

Can anyone help?

Laura
Report this to a Moderator Report this to a Moderator
 22-Nov-2004 13:49
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Linksets are objects in a link module.

To extract the source and target module names, use the following:

Object o
Module linkModule
string src
string tgt

for o in linkModule do
{
src = o."source"
tgt = o."target"

print("Linkset: " src " -> " tgt "\n")
}




-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 22-Nov-2004 16:18
User is offline View Users Profile Print this message


Laura Norton

Posts: 17
Joined: 6-Apr-2004

Answer Answer
Great, this is what I need. Thanks!
Report this to a Moderator Report this to a Moderator
 9-Sep-2008 05:52
User is offline View Users Profile Print this message


Peter Dawson

Posts: 14
Joined: 21-Jul-2008

I have a followup to this question.

if Linksets are objects in a link module then how do you access the Links in a Linkset?

Are they accessed the same as links in an object? Such as below?

-------------------------
Peter Dawson
Engineering Tools Support Group
Boeing Australia Limited

Edited: 9-Sep-2008 at 05:53 by Peter Dawson
Report this to a Moderator Report this to a Moderator
 9-Sep-2008 15:35
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You cannot access Links themselves from the LinkModule. You need to open the source module, look at its objects, and look at each objects links.

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