To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 317
316  |  318
Subject: 
Re: problems w/ L3P
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 26 Apr 2000 21:57:12 GMT
Viewed: 
1093 times
  
L3P is a DOS program.
You can NOT run it by double-clicking on it in the Explorer.
You must run it in a DOS window (a DOS-box).
Open a DOS window (Start/Programs/MS-DOS-prompt)

There are two requirements to run L3P:
1) DOS must know where to find the l3p.exe command.
2) L3P must know where LDraw is installed, i.e. in which directory L3P
   can find the P, PARTS and MODELS directories.

1) DOS must know where to find the l3p.exe command.
------------------------------------------------------------------------
Where have you put l3p.exe?
Let's say it is in the c:\Download\Lego\L3P directory, then you have to
put c:\Download\Lego\L3P in your PATH.
In a DOS-box type:
   set PATH=%PATH%;c:\Download\Lego\L3P
(PATH is set to the old PATH plus c:\Download\Lego\L3P) then DOS
will search for l3p.exe in c:\Download\Lego\L3P too.
This means that you can stay in any directory, e.g. where your models are
or where your POV files are, and start L3P. DOS can now find l3p.exe
because you have told it where to look.

[1] If you want to see where else DOS looks for programs, simply type:
   path

The "set PATH=%PATH%;c:\Download\Lego\L3P" command can be appended
to your c:\autoexec.bat (use any text-editor e.g. Notepad, and paste the
"set PATH=%PATH%;c:\Download\Lego\L3P" command at the end).
Now the command will be executed each time you start a DOS-box and the PATH
is automatically updated, and you save typing the set command.

If you don't want to mess with the PATH environment variable, then you
can just place l3p.exe in e.g. c:\Windows or any other directory that
is already in your PATH, see [1]

2) L3P must know where LDraw is installed
----------------------------------------------------------------
L3P needs to know where to look for the LDraw parts, i.e. where the P,
PARTS and MODELS directories are located. If you have installed LDraw in
c:\Lego\LDraw, then your computer has these directories:
c:\Lego\LDraw\P
c:\Lego\LDraw\PARTS
c:\Lego\LDraw\MODELS
and these files (among others):
c:\Lego\LDraw\LDraw.exe
c:\Lego\LDraw\LEdit.exe
c:\Lego\LDraw\parts.lst

So your LDraw directory (LDRAWDIR) is c:\Lego\LDraw.
You must call the DOS-command "set" before any calls to L3P (don't use
a trailing backslash in the directory and only one blank (between set
and LDRAWDIR)):
C:\> set LDRAWDIR=c:\Lego\LDraw
C:\> l3p car.dat
C:\> l3p car.dat newview -cg30,45 -b -f
This should result in two POV-files c:\car.pov and c:\newview.pov

If you have POV-Ray for Windows installed (http://www.povray.org) then
type in a DOS-box:
C:\> set LDRAWDIR=c:\Lego\LDraw
C:\> cd PovFiles
C:\PovFiles> l3p -b -f car.dat
C:\PovFiles> start car.pov
This will launch POV-Ray for Windows and you can press the Run button.
Voila!

It is convenient to put "set LDRAWDIR=c:\Lego\LDraw" in your
c:\autoexec.bat, then you don't have to type the "set" command
everytime you open a DOS-window.

So, add two lines to c:\autoexec.bat:
set PATH=%PATH%;c:\Download\Lego\L3P
set LDRAWDIR=c:\Lego\LDraw
The two lines will not have any effect until after a reboot of your computer.

You may also want to have a look at a GUI for L3P at
http://www.flash.net/~onyx/L3PAO/L3PAO.html

I know it is hard for users with no or little DOS experience.
You are not the only one, see
http://www.lugnet.com/news/display.cgi?lugnet.cad:2174 :-)
Good luck
/Lars



Message is in Reply To:
  Re: problems w/ L3P
 
(...) nyhedsmeddelelse:FtJ...net.com... (...) the (...) key (...) Sorry but I know almost nothing about MS-DOS so could you help me out? I got the DOS box up, but not w/ L3P -kyle |¯¯¯| | | (@ @) +--------oOO---(_)---...---+ | / (URL) \ | |/ \| |\ (...) (25 years ago, 26-Apr-00, to lugnet.cad.ray)

7 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