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: Verifying Linkset Creation
Topic Summary:
Created On: 15-May-2008 16:43
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.
 15-May-2008 16:43
User is offline View Users Profile Print this message


Keith Berends

Posts: 2
Joined: 13-Jun-2007

Hello everyone,

I'm new to DOORS and DXL and I'm trying to check to see if a linkset I created with a modified kitchen utility is working.
I checked the linkset module manually so I know the actual code is working, but it was requested that a message pop up telling the user whether or not a linkset was created.
I've been searching through the references given to me but I can't find any talk about number of linksets in the linkset Module or a function that will check for a linkset between a source and target is there.

If anyone could give me some help it would be greatly appreciated.
Report this to a Moderator Report this to a Moderator
 15-May-2008 17:24
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Well the "Linkset create([Module linkMod], string source, string target)" function returns a Linkset handle. Check if that handle is null. If so, it wasn't created. If not, then it was created.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 15-May-2008 17:53
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

If David's method doesn't work for you, you could check after the fact any time as long as you know the source module, target module and link module the link set is supposed to exist in.

You could then use a variation of the attached code to compare the names of the source and target modules. Module m is the link module in which the link set was to be created.

For example take the open a DXL Editor from within a link module and then run the attached code. It will print the source and target modules for each link set.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 15-May-2008 at 17:54 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 15-May-2008 18:15
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

If you wanted to count the link sets in the link module, you could put a counter in the for loop.

Link modules, at least from what I can tell, are very similar to a formal module. Where each link set is an object with attributes, following five attributes exists for link sets (or the objects that represent link sets):

"Source" : String type attribute containing the full name of the source module.
"Source Index" : String type attribute that appears to contain the unique identifier of the source module.
"Target" : String type attribute containing the full name of the target module.
"Target Index" : String type attribute that appears to contain the unique identifier of the target module.
"Suspicion Cleared Forwards" : Date type attribute, used for clearing suspect links. If you have not cleared suspect links yet, this attribute may not exist. I wrote a script to clear suspect links and had to add this attribute if it didn't exist in the link module when I went to clear a suspect link.

Of course there is the standard attributes as well of:

"Absolute Number"
"Created By"
"Created On"
"Last Modified By"
"Last Modified On"

The links themselves I believe are child objects of the link set object. So they too contain

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 15-May-2008 at 18:19 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 15-May-2008 19:14
User is offline View Users Profile Print this message


Keith Berends

Posts: 2
Joined: 13-Jun-2007

I got it to work, thank you both for your help.

Scott,

Thanks, that really cleared up some questions I had with what linksets and linkset modules actually were.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.