Subject:
|
Re: Search path question
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 13 Jul 2007 00:18:23 GMT
|
Viewed:
|
5214 times
|
| |
| |
Travis Cobbs wrote:
> 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?
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 sub/sub/sub2.ldr.
If that fails it checks the ldraw tree.
Also I was told a while back it's an unwritten rule to only use dirs in
references for subparts and primitives, everything else is off limit :)
This is the way I implemented it in LD4DStudio after a discussion in
this group a while back.
Greetings,
Roland
|
|
Message has 1 Reply:
Message is in Reply To:
| | Search path question
|
| 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 (...) (17 years ago, 12-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
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|