2015 UPDATE... Istill get requests for Rastread! Wow. I used to supply it by email just
to keep track, but at this point, you can download the whole thing - Please,
send me a note if you do, just for
If you need the long story,
just read the whole thing.
Do you still use a DOS version of Orcad
such as rel 3.10 and would like to print a schematic file to
a BMP image?
The easiest way to do this is to use Orcad's
built in driver for Raster images. You can choose that as if
it were a printer. The only trouble is that it is kind of hard
to get any graphic program to recognize such format. I have worked
on it and I got just the utility you need to change a Raster
file to a BMP. Of course, as far as I know, this is only valid
for Orcad's Raster.drv - See an example
of BMP generated by RASTREAD.
This is what you need to do.
First of all, you will need a working
copy of Orcad and its original files
You can download
Rastread HERE free of charge and use it without restrictions.
On the other hand, you can write your own program using this
RASTREAD is a QuickBasic 4.5 program compiled
RASTREAD will convert a .RAS file genertated
by printall to a B/W BMP.
In order to generate the proper .RAS file,
you will need to execute PRINTALL /C and set the printer driver
to RASTER. If you no longer use a DOS printer connected to the
LPT1, you can leave PRINTALL set to this format for good, otherwise,
change it back to your printer driver each time. (That can be
done by a batch file).
RASTREAD accepts the filename (TEST.RAS)
to convert as a command line argument, so you can easily type
something such as RASTREAD TEST (no extension), and it will generate
a file TEST.BMP. You cannot use a different extension.
RASTREAD can also be executed without
providing a filename. In this case, you can type it as requested
(still, no extension).
Basically, assuming you have a certain
file called RS232.sch and you want its output to BMP, you need
(first time only) d:\orcad> PRINTALL
/C and then PD (Printer Driver) S (Special) RASTER.DRV U (Update)
Q (Quit) - How to do this automatically
d:\orcad> PRINTALL RS232.sch RS232.ras
d:\orcad> RASTREAD RS232
Now you can delete the raster file if
you don't need it anymore
d:\orcad> DEL RS232.ras
If you plan to use this quite often, you
can create a batch file to make it all automatic.
I have created two text files called SETRAS.TXT and SETPRN.TXT
which contain the keystrokes necessary to go through PRINTALL
/C and set raster or my HP printer. You don't necessarily need
to do that. If you wish, just remember you can use COPY CON SETRAS.TXT
to record everything you type to that file, and end it with CTRL+Z.
Place RASTREAD.EXE in the same folder
Execute PRINTALL.EXE /C
set the Printer Driver (PD) as "Special"
type in "RASTER.DRV";
Execute PRINTALL.EXE FILE.SCH FILE.RAS
Execute RASTREAD.EXE FILE
Execute DEL FILE.RAS
You should find FILE.BMP in the same folder
2015 UPDATE... Istill get requests for Rastread! Wow. I used to supply it by email just to
keep track, but at this point, you can download the whole thing - Please,
send me a note if you do, just for fun.