Redefining links
When you move documents from one location to another, sometimes the links to these documents break. The Redefine Links command, located on the Tools tab, allows you to redefine the links on a selected set of files. The command does not actually copy or move files, but instead redefines links in assemblies after the files have already been moved.
The Redefine Links command guides you through a set of prompts that allow you to define information needed to redefine the links.
-
At the first set of prompts, you select the folders or documents containing the links that you want to define. You can choose from several filters to specify the location and type of files you want to process. You can specify any type of QY CAD file or you can choose to process files listed in an ASCII text file. When you have determined the location of the files, you can process a selected list of files, all files within a selected folder, or all files within a selected folder and any subfolders.
-
At the second set of prompts, you specify the link path redefinition. First, you identify the current link path and then specify the path to which you want to redefine the link. The dialog box provides an example of how these link path definitions work.
-
At the third set of prompts, you confirm the information you entered. The dialog box also contains a very important option, Do not save files when links point to non-existent files. If you do not select this option and attempt to process a link that points to a non-existent file, the system will open the parent assembly and save the redefined link path string in the parent assembly. An error is written to the log file stating that the non-existent files could not be found. If you select the option, the system does not open and save the redefined link path string in the parent assembly, but does write an error message to the log file stating that the non-existent files could not be found.
-
The final set of prompts tracks the processing of the selected files. It specifies how many documents were processed and how many links were repaired.
Redefined links log files
Two log files are created when you redefine links. These files are located in the same directory that contains the files being processed.
-
ReDefLinksLog.txt is an ASCII text file that contains information about the files being processed. It contains general information, such time, date, login name, and nodename. It also contains a list of all results, both successful replacements and problems encountered.
-
ReDefLinksErr.txt contains the same information as ReDefLinksLog.txt except for the successful replacements. This is very useful when you are processing a large number of files, most of which are successful. You can check the error log to quickly see the files that need correcting.
© 2021 UDS