![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Create Linksets in Link Module Topic Summary: Created On: 3-Jun-2008 11:44 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I have a script out at Baselines, Inc. that creates multiple link sets for one module at a time. You can download it here Create Link Sets for Module. If you look in the createLinkSets (DB win) method, you'll find a good example of how to create a link set and a link module descriptor. However basically all you need to do is: | |
![]() |
|
Hi All
Is there a way to automatically create linksets in a link module, say for all the formal modules in your project? I tried using Linkset create(linkMod,source,target) but this would not work. I specified the target and obtained the source using module names in a skiplist. The correct values are being returned, but I can't create the linkset. Any help must appreciated. |
|
![]() |
|
![]() |
|
Just to check, this is the format you're using right?
Linkset ls = create (Module linkMod, string source, string target) Make sure you have the link module open in Exclusive Edit prior to calling the create method and of course save the link module. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Hi Scott
Thanks for the reply. Yes thats the format I was using, but perhaps I am implementing it wrong. SImply having that statement will not be enough, hwo would I use it please? Thanks Lisa |
|
![]() |
|
![]() |
|
I have a script out at Baselines, Inc. that creates multiple link sets for one module at a time. You can download it here Create Link Sets for Module. If you look in the createLinkSets (DB win) method, you'll find a good example of how to create a link set and a link module descriptor.
However basically all you need to do is: ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Absolutely brilliant, spot on, thanks so much Scott.
|
|
![]() |
|
![]() |
|
Whoops, unfornately this created the linksets in the link module, but not the pairings in the modules themselves.
Did I do something wrong do you think? |
|
![]() |
|
![]() |
|
Ahh...The pairings in the formal module (the source module) are the link module descriptors.
To create the link module descriptor you need to get the parent folder of the source module. You cand do that like so: Module srcM = edit (tempStringOf (srcModName), false) Folder f = getParentFolder (srcM) Then use the addLinkModuleDescriptor function like so: addLinkModuleDescriptor (f, tempStringOf (srcModName), tempStringOf (targetModName), false, true, fullName (lm), "") The first boolean (false) dictates whether the pairing is overridable. The second boolean (true) dictates whether the pairing is mandatory. Again if you look in the createLinkSets (DB win) method of the Create Links Sets for Module scripts you'll find an example of how to create the pairing. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com Edited: 3-Jun-2008 at 13:57 by Scott Boisvert |
|
![]() |
|
![]() |
|
Thats got it, fantastic. Thanks so much.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Create Linksets in Link Module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.