![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Ah! That works just fine!
Thank you. ------------------------- Kristian Bøe Extenda AB Kristian.Boe@extenda.se |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.