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 / 10653
10652  |  10654
Subject: 
Re: Search path question
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 12 Jul 2007 19:47:18 GMT
Viewed: 
5069 times
  
In lugnet.cad.dev, 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?

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).

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.


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

This seems the right thing to do IMHO.

Kevin



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
    

Custom Search

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