![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DOORS 8.1 - Modify ALL External Links in a Module Topic Summary: Need to modify external links to file whose location changed Created On: 19-Jun-2007 20:36 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I've created hundreds of external links from a DOORS 8.1 module to HTML files located in a directory on a network drive. The location of the directory on the network drive changed...does anyone have a DXL script, or know of another way, to do a mass update on all the external links of the module to modify part of the path of the external link to point to the new location? Please reply as soon as possible. Thanks, Frank Poljanec |
|
![]() |
|
![]() |
|
Hi Frank,
I think you will need: string update(string description, string name,ExternalLinkDirection direction, ExternalLinkBehaviour follow, string body, ExternalLink newLink) It will change existing external link as you like. I've attached an example to change all links from and to all objects in current module. You need to modify line 17 ff. to your needs ... Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hi Reik,
Thanks for the quick reply! But I think that I did not explain the problem correctly. The solution that you provided, I think, will replace the ENTIRE existing external link address with another. The solution that I am looking for will only replace part of the existing external link. Please refer to the example below. It will illustrate exactly what I need to accomplish. Example: I have an external link: C:\html\3045\3045_module_index.html. I need to modify this external link to: N:\external\html\3045\3045_module_index.html In essence, for each external link in the module, I need to replace the string "C:" with "N:\external" I need to replace only part of the each existing external link for the entire module, not the entire existing external link. If you have a solution for this problem, I would be grateful if you would send it to me. Best Regards, Frank Poljanec |
|
![]() |
|
![]() |
|
Hi Frank,
that is exactly the intension of the above script. you only need to insert something like this at line 17: // modify here the szOldBody as you like, it is the target of external link if (szOldBody[0:1] == "C:") { szOldBody = "N:\\external"szOldBody[2:]; } Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hi Reik,
Yes...I figured it out using your dxl script and it worked beautifully! Thank you very much for your help. Best Regards, Frank Poljanec |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.