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 / 11155
11154  |  11156
Subject: 
Re: Library search paths.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 26 Apr 2011 04:15:44 GMT
Viewed: 
20620 times
  
In lugnet.cad.dev, Roland Melkert wrote:
In lugnet.cad.dev, Don Heyse wrote:
In lugnet.cad.dev, Timothy Gould wrote:
In lugnet.cad.dev, Roland Melkert wrote: <snip>
So how 'weird' would it be to include the root ldraw dir in search paths by
default, so it becomes (on my system)

C:\Program Files (x86)\ldraw\parts\
C:\Program Files (x86)\ldraw\p\
C:\Program Files (x86)\ldraw\

Anyone think that's a bad idea?

I would personally advise against it, but can't give a real justification for
this recommendation other than the fact that it's non-standard.

I don't think you should use the normal search strategy (enhanced or not)
for ldconfig.ldr because it's a special case.  It's got global scope, and
it's not referenced by name in your ldraw files.  Tim's on the right track.

The spec is very specific about ldconfig.ldr being in the main LDraw directory.
LDView hard-codes the path to be "<LDraw Dir>/ldconfig.ldr".  (Well, the ldraw
dir isn't hard coded, but you get the idea.)  I think it's perfectly reasonable
for an app to allow for alternate color definition files to be loaded in place
of ldconfig.ldr (or even in addition to ldconfig.ldr) if the app provides the
user a way to explicitly state what they are.  However, I don't feel that they
should be ever found via a search path.  They should always be fully specified
paths, not ones that are "found".

I think maybe Lars posted some code for this eons ago, and perhaps that
code made it's way into ldview?

  http://sourceforge.net/projects/ldrawini/

LDView does indeed used Lars's ldrawini code, and I have passed improvements
onto his project.  It's melded into LDView's preexisting "Extra Search Dirs"
functionality.  As mentioned before, though, LDView does NOT use this to load
ldconfig.ldr.  (It's possible that on a new machine LDView will used the
ldrawini to find the base LDraw directory; I can't remember if it does this or
not.)

--Travis



Message is in Reply To:
  Re: Library search paths.
 
(...) <snip> (...) Lars' project looks interesting but my generic LDraw search handling code is all done. I'm only looking for a way to get the 'default out of the box' colors in place upon first start. The user can change that of course but it (...) (14 years ago, 23-Apr-11, 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