![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Verifying Linkset Creation Topic Summary: Created On: 15-May-2008 16:43 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Verifying Linkset Creation
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.