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 / 10655
10654  |  10656
Subject: 
Re: Search path question
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 13 Jul 2007 00:18:23 GMT
Viewed: 
5052 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:
  Re: Search path question
 
(...) Hi Roland, Thanks for the input. Has anyone else implemented the mechanism the way Roland has? Kevin (17 years ago, 13-Jul-07, to lugnet.cad.dev)

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
    

Custom Search

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