To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10656
10655  |  10657
Subject: 
Re: Search path question
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 13 Jul 2007 16:32:09 GMT
Viewed: 
10750 times
  
In lugnet.cad.dev, Roland Melkert wrote:
> 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

Hi Roland,

  Thanks for the input.  Has anyone else implemented the mechanism the
way Roland has?

Kevin



Message is in Reply To:
  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 (...) (19 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
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR