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: Create Linksets in Link Module
Topic Summary:
Created On: 3-Jun-2008 11:44
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 Scott Boisvert, on Tuesday, June 3, 2008 12:58 PM

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:
 3-Jun-2008 11:44
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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.
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 12:16
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 12:19
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 12:39
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Answer 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:

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 12:59
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Absolutely brilliant, spot on, thanks so much Scott.
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 13:44
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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?
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 13:56
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 3-Jun-2008 14:11
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Thats got it, fantastic. Thanks so much.
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.