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 / 9505
9504  |  9506
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 16 Feb 2004 16:52:28 GMT
Viewed: 
3704 times
  
In lugnet.cad.dev, Lars C. Hassing wrote:
In lugnet.cad.dev, Michael Lachmann wrote:
The idea with environment variables is not bad, though there are two major
disadvantages against the methode implemented in MLCad (which uses some ini
file entries to define the search path, including an option for the user
wether the entry shell be visible for selection or not):

1) It doesn't allow to define paths inbetween the standard search paths,
which is a disadvantage sometime.
2) You do not have any chance to hide subparts and primitives from the users
view.

So, it seems like the search candidates are:
<MODELDIR>   (of the currently loaded model (PROJECTDIR))
<LDRAWDIR>\P
<LDRAWDIR>\PARTS
<LDRAWDIR>\MODELS
<LDRAWDIR>\AnotherDir
<LDRAWDIR>\AnotherDir\SubDir
C:\LDrawXtra\MyParts\In Work
C:\LDrawXtra\MyParts\Done
C:\LDrawXtra\UnOff
all with an option to hide them in certain programs.

How about
LDRAWSEARCH=<MODELDIR>|-<LDRAWDIR>\P|<LDRAWDIR>\PARTS|<LDRAWDIR>\MODELS
as the default (if LDRAWSEARCH is not set)

A full-blown example:
LDRAWSEARCH=-C:\LDrawXtra\MyPrims\In Work|C:\LDrawXtra\MyParts\In Work|
      <MODELDIR>|-<LDRAWDIR>\BFC\P|-<LDRAWDIR>\BFC\PARTS|
      -<LDRAWDIR>\P|<LDRAWDIR>\PARTS|<LDRAWDIR>\MODELS|
      <LDRAWDIR>\MODELS\TEST|C:\LDrawXtra\MyParts\Done

Note that <MODELDIR> changes each time you load a new model.

A bit wordy, but not bad.  How about a few more predefined tags
for the standard directories to save environment space?  Like using
<P> instead of <LDRAWDIR>\P, <PARTS> instead of <LDRAWDIR>\parts,
and <MODELS> instead of <LDDRAWDIR>\models?

What do you think of using / instead of \,  or just allow either?

I assume you use the - for hidden directories.  Since - is allowed
in paths, I think I'd prefer something a bit more obvious like <->
or even <HIDE> since that word is already used by MLCAD.

I'd also suggest putting the whole thing in quotes for the example
since that takes care of embedding any spaces and the | characters.
How about something like this?

SET LDRAWSEARCH="<HIDE>C:\LDrawXtra\MyPrims\In Work|
      C:\LDrawXtra\MyParts\In Work|
      <MODELDIR>|<HIDE><LDRAWDIR>\BFC\P|<HIDE><LDRAWDIR>\BFC\PARTS|
      <HIDE><P>|<PARTS>|<MODELS>|<MODELS>\TEST|C:\LDrawXtra\MyParts\Done"


Don



Message has 1 Reply:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
"Don Heyse" <dheyse@hotmail.spam....away.com> schrieb im Newsbeitrag news:Ht6s7G.1792@lugnet.com... (...) major (...) ini (...) user (...) There is another disadvantage of this methode. Environment variables are very system dependend and usualy are (...) (20 years ago, 17-Feb-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) So, it seems like the search candidates are: <MODELDIR> (of the currently loaded model (PROJECTDIR)) <LDRAWDIR>\P <LDRAWDIR>\PARTS <LDRAWDIR>\MODELS <LDRAWDIR>\AnotherDir <LDRAWDIR>\AnotherDir\SubDir C:\LDrawXtra\MyParts\In Work (...) (20 years ago, 11-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