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: Default link module for links from one module to others
Topic Summary:
Created On: 15-Oct-2004 16:23
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 Louie Landale, on Monday, October 18, 2004 3:34 PM

Answer:
You'll need to deal with DXL "LinkModuleDescriptors" best run from the folder housing the source module. Be sure to use full path names when specifying your source/target/link module names. DXL may look like this:
Module mCurr = current // Source Module
Folder fCurr = current // Source Module's Folder
string NameSource = fullName(mCurr)
string NameLMFull = <Full path name of desired Link Module>
bool Overrideable = false
string ErrMess

Somehow Read the desired target module names
for each NameTarget
{ ErrMess = addLinkModuleDescriptor(fCurr, NameSource, NameTarget, Overrideable, NameLMFull)
if (!null ErrMess) ack("Error setting LMD to " NameTarget ":" ErrMess)
}

I suspect there is a "Mandatory" issue here, where you need to query for the LMD and then set the Mandatory flag (which should be but isn't the opposite of the Overrideable flag)

- Louie
 15-Oct-2004 16:23
User is offline View Users Profile Print this message


Kristian Bøe

Posts: 29
Joined: 16-Jun-2003

Does anyone have a script for creating default link module for links from one module to others, as appears in the module properies Linkset tab?

I have a few modules that I want to restrict the link module used when they link to any of about 300 other modules. and as it's no fun doing manually I wonder what script should be used.

-------------------------
Kristian Bøe
Extenda AB
Kristian.Boe@extenda.se
Report this to a Moderator Report this to a Moderator
 15-Oct-2004 16:41
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
You'll need to deal with DXL "LinkModuleDescriptors" best run from the folder housing the source module. Be sure to use full path names when specifying your source/target/link module names. DXL may look like this:
Module mCurr = current // Source Module
Folder fCurr = current // Source Module's Folder
string NameSource = fullName(mCurr)
string NameLMFull = <Full path name of desired Link Module>
bool Overrideable = false
string ErrMess

Somehow Read the desired target module names
for each NameTarget
{ ErrMess = addLinkModuleDescriptor(fCurr, NameSource, NameTarget, Overrideable, NameLMFull)
if (!null ErrMess) ack("Error setting LMD to " NameTarget ":" ErrMess)
}

I suspect there is a "Mandatory" issue here, where you need to query for the LMD and then set the Mandatory flag (which should be but isn't the opposite of the Overrideable flag)

- Louie
Report this to a Moderator Report this to a Moderator
 18-Oct-2004 15:34
User is offline View Users Profile Print this message


Kristian Bøe

Posts: 29
Joined: 16-Jun-2003

Ah! That works just fine!
Thank you.

-------------------------
Kristian Bøe
Extenda AB
Kristian.Boe@extenda.se
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.