Subject:
|
Re: PreL3P 1.0
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Thu, 11 Oct 2007 17:30:26 GMT
|
Viewed:
|
3874 times
|
| |
| |
&tIn lugnet.cad, Tore Eriksson wrote:
> > > The only workable way for that would be
> > > a PreL3P.ini file I guess, but that would probably mean quite a lot of work for
> > > you.
> >
> > If it could use a configuration file, what would be a standard place to look for
> > it? ;>
> > Jim
>
> The Windows directory. But if there is one in the same folder as the model file,
> it shall take precendence. Maybe most LDraw'ers would suggest a [PreL3P] section
> inside the existing %windir%\LDraw.ini file.
For portability I am inclined to look for the configuration file in the model's
folder (or the current directory if using stdin). Otherwise I realize I'd have
to start coding special cases for Windows, Linux, and the Mac.
> Hey! While writing, I had an even better idea, I think! Why not make
> META-statements inside the model file!
>
> 0 Cadillac '59
> 0 Author: John Smith
> 0 Unusual Model
> 0 PREL3P +codes all
> 0 PREL3P renum 7 8
> 0 and so on...
>
> Yes! the more I think of, the more I like the idea. And I think it's the easiest
> way, too.
It is a good idea. It would actually take more work, though, because currently
prel3p expects to be fully configured before it starts processing the model. It
might be a little simpler at the ldconfig parsing stage (you could even pass the
model as a second -ldconfig option), but that would probably be less convenient
to use.
I'll add support for a plain configuration file, and make a note of the meta
command idea.
Jim
|
|
Message has 1 Reply: | | Re: PreL3P 1.0
|
| (...) Well, I lied. I've implemented the meta commands instead of an INI file after all. I've also added a -map option to renumber color codes. This can be done separately or in conjunction with conversion to the hexadecimal color format. The (...) (17 years ago, 12-Oct-07, to lugnet.cad)
|
Message is in Reply To:
| | Re: PreL3P 1.0
|
| (...) No, but I can easily add some PreL3P options, just like I've added L3P options, in my LDA program. In that case, the command line options are better than the .ini way. (...) The Windows directory. But if there is one in the same folder as the (...) (17 years ago, 11-Oct-07, to lugnet.cad)
|
22 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
|
|
|
|