Subject:
|
Search path question
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Thu, 12 Jul 2007 19:27:53 GMT
|
Viewed:
|
5144 times
|
| |
| |
I just noticed some unexpected behavior in LDView, and I wanted to ask here
whether or not the behavior was right. Suppose you have the following files:
TestModel.ldr
Sub/Sub1.ldr
Sub/Sub2.ldr
TestModel.ldr contains a reference to Sub/Sub1.ldr. When Sub1.ldr refers to
Sub2.ldr, should it use Sub2.ldr as the filename or Sub/Sub2.ldr? In other
words, does the "current model directory" part of the search path refer to the
model the user actually loaded, the current model, or both?
For reference, LDView can't find the file if you don't use Sub/Sub2.ldr in
Sub1.ldr. I would lean towards saying that this is incorrect behavior, but
since nobody has complained about it, it appears that people aren't doing this
in their models (which is understandable, I guess).
Please note: parts in the library apparently always include the directory, even
if they're already in that directory. For example, s/14s01.dat contains a
reference to s\647s00.dat.
--Travis
|
|
Message has 3 Replies: | | Re: Search path question
|
| (...) I know that LPub would only know where to find sub2 if it was specified as sub/sub2.ldr. I think if there only being only one current working directory which is the directory where you've placed your top level model file. (...) This seems the (...) (17 years ago, 12-Jul-07, to lugnet.cad.dev)
| | | Re: Search path question
|
| (...) The way I understand the file handeling system, this should not load. Because every file's references must be handled relative from the file being loaded (not to the main file). So calling sub/sub2.ldr from sub/sub1.ldr will look at (...) (17 years ago, 13-Jul-07, to lugnet.cad.dev)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|