This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Previous revision | ||
rhino:rhinov5status_filefinding [2019/10/30] |
rhino:rhinov5status_filefinding [2023/09/07] 127.0.0.1 external edit |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Finding Linked Files ====== | ||
+ | ===How Rhino Searches for Linked Blocks or Worksession References in Rhinoceros Versions 5 or later.=== | ||
+ | |||
+ | Rhinoceros versions 5 or later automatically attempts to find files a linked block definition or worksession references if they are not located in the expected location. | ||
+ | |||
+ | Common cases that the automatic finding attempts to handle include: | ||
+ | * A colleague sends you a model and a collection of auxiliary files. You put them on your computer in a folder with a different path than your colleague used. | ||
+ | * You move your model from one computer to another using some variation on the theme of copy from computer A to storage device, then copy from storage device to computer B. | ||
+ | * You change the way you arrange your models and auxiliary files. | ||
+ | |||
+ | ==== File name terminology ==== | ||
+ | To describe the process Rhinoceros uses to find files, we will use these terms. | ||
+ | * **Complete file name** The name of the file that contains the storage device, the directories, | ||
+ | * %%C: | ||
+ | * %%\\fileserver\root\gamma\g1\goat2.3dm%% | ||
+ | * **Short file name** The name of the file with no storage device or directory information prepended. A short file name does not contain any slash symbols ( %%' | ||
+ | * %%aardvark1.3dm%% | ||
+ | * %%goat2.3dm%% | ||
+ | * **Complete directory name** The name of a directory that contains the storage device, and all intermediate directories, | ||
+ | * %%C: | ||
+ | * %%\\fileserver\root\gamma\g1\%% | ||
+ | * **Relative file name** and **starting directory** The //starting directory// is a complete directory name and the //relative file name// describes how to find a file if you begin in the starting directory. | ||
+ | * The first part of a relative file name is either a a ' | ||
+ | * A complete file name can be constructed from a relative file name and a starting directory. | ||
+ | * starting directory = %%C: | ||
+ | * relative file name = %%..\gamma\g2\goat2.3dm%% | ||
+ | * complete file name = %%C: | ||
+ | * **Active model file name** | ||
+ | * **Active model directory** The complete directory name of the active model file name. | ||
+ | * **Parent file name** A complete file name that depends on the context of the file Rhino is trying to find. | ||
+ | * If Rhino is trying to find a file that is a model in a worksession, | ||
+ | * If Rhino is trying to find is a file that contains the objects in a linked block definition, the //parent file name// is the name of the .3dm file that has the linked block definition. | ||
+ | * If Rhino is trying to find a file that is neither a model in a worksession nor a linked block definition, | ||
+ | * **Working directory** The //working directory// is a complete directory name. When your computer starts a program like Rhino it assigns a working directory. Usually, but not always, this is the directory where Rhino saves a model that has never been saved before or the directory where you last opened a model. | ||
+ | |||
+ | ==== Searching for files ==== | ||
+ | When Rhinoceros saves the names of models used by worksessions and linked block definitions, | ||
+ | When Rhino 5 is looking for a model file used by a worksession or linked instance definition, it searches in the following order: | ||
+ | - Saved complete file name. | ||
+ | - Saved relative file name relative to the parent file directory. | ||
+ | - A complete file name is made by replacing the storage device (drive letter) in the saved complete file name with the storage device (drive letter) in the working directory. | ||
+ | - The short file name in the parent directory. | ||
+ | - The short file name in the active model directory. | ||
+ | - The short file name in the working directory. | ||
+ | - Searches subdirectories of the complete directory. | ||
+ | - Searches subdirectories of the parent directory. | ||
+ | - Searches subdirectories of the active model directory. | ||
+ | |||
+ | Back to [[rhinov5status_largemodels|Rhinoceros Large Model Support]] | ||
+ | |||
+ | {{tag> | ||
+ | {{tag> | ||
+ | {{tag> | ||