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 / 9486
9485  |  9487
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 10 Feb 2004 22:52:54 GMT
Viewed: 
3468 times
  
In lugnet.cad.dev, Lars C. Hassing wrote:
Several users have asked for an option to L3P for specifying additional search paths for parts.
LDView already has implemented "Extra Search Dirs" to search after the usual ones.

I think it would be of common interest and for the benefit of the community if we could agree on
THE way to do it, so I'll make the following proposal (as a starting point):

Two environment variables LDRAWPREDIRS and LDRAWPOSTDIRS
can be used to specify additional search directories.
Each variable can contain multiple directories separated by a |.
The search path will then be:
1. Inside the document if it is an MPD
2. The document's directory (the directory of the main model)
3. Any directories in %LDRAWPREDIRS%
4. %LDRAWDIR%\P
5. %LDRAWDIR%\PARTS
6. %LDRAWDIR%\MODELS
7. Any directories in %LDRAWPOSTDIRS%

Environment variables are preferred, because they work on all platforms.
However, on Windows, if they are not set, ldraw.ini is then checked.
A sample ldraw.ini may look like this:
[LDraw]
BaseDirectory=C:\LDraw
LgeoDirectory=C:\L2P
PreDirectories=C:\LDrawXtra\MyParts\In Work
PostDirectories=C:\LDrawXtra\MyParts\Done|C:\LDrawXtra\UnOff

Other namings: LDRAWDIRPRE, LDRAWDIRSPRE, - you name it!
/Lars

I like this idea.  Can you support delimiting paths by ';' instead of '|'?  ';'
is more in line with the delimitation in the PATH environment varible.

-Orion



Message has 1 Reply:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) Sure, I just chose | because ; is allowed in filenames. /Lars (20 years ago, 10-Feb-04, to lugnet.cad.dev)

Message is in Reply To:
  LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
Several users have asked for an option to L3P for specifying additional search paths for parts. LDView already has implemented "Extra Search Dirs" to search after the usual ones. I think it would be of common interest and for the benefit of the (...) (20 years ago, 10-Feb-04, to lugnet.cad.dev)

132 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
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