Re: to get a postcript file from Case Designer
Date: 21 Dec 1994 17:27:48 GMT
Message-ID: <445362.94Dec21092749_at_aisserver1.llnl.gov>
In article <D16674.C3o_at_dcc.uchile.cl> crpalma_at_cec.uchile.cl (CRISTIAN PALMA) writes:
Hi ...
There is somebody that know how to generate a postcript file from the Case Designer ? I want to generate a posrcript file for a diagram that I have in the Case Designer. What environment variables I need to set in order to do this ( and which is the setting ? ) ? I need another thing ?
I saw the ccaseenv file - I use the tcshell - and I found that this file have various lines in commentary. So, here's this file ...
- it was extracted from $ORACLE_HOME/cdict/admin/etc/ccaseenv ****
(Stuff deleted...)
# CASE_PS_CMD: Used to specify the PostScript plotter OS command that # will operate on the CASE*Designer generated file. # Example: set <value> to "lpr -r"if ($?CASE_PS_CMD == 0) then
# setenv CASE_PS_CMD <value>
endif
# CASE_HP_PORT: Used to specify the HPGL plotter device to which # the output will be written directly. # Example: set <value> to "/dev/ttya"if ($?CASE_HP_PORT == 0) then
# setenv CASE_HP_PORT <value>
endif
# CASE_HP_CMD: Used to specify the HPGL plotter OS command that # will operate on the CASE*Designer generated file. # Example: set <value> to "copyplot"if ($?CASE_HP_CMD == 0) then
# setenv CASE_HP_CMD <value>
endif
(Stuff deleted...)
Christian,
Designer writes your postscript (or HPGL) outout to a temp file, then invokes the command in CASE_PS_CMD and finally deletes the temp file. The answer is to set CASE_PS_CMD to something that will save the temp file. Oracle includes a command called copyplot to do just that:
#
# $Header: copyplot 10119.1 89/12/05 13:38:34 ckim Generic<base> $ copyplot Copyr (c) 1989 Oracle
#
# This is a sample script used to copy the plotter output to a file
# To use it, simply setenv CASE_PS_CMD "copyplot" or CASE_HP_CMD "copyplot"
#
cp $1 PLOT.OUT
# Note that PLOT.OUT can be any name that you choose
# Note also that each output session will overwrite the PLOT.OUT file.
# This basic script can be used to develop advanced scripts which avoid
# the problem of overwriting the same file.
#
rm $1
As they suggest, just "setenv CASE_PS_CMD copyplot" and then "print" from designer.
Grant Johnson Internet: grantj_at_llnl.gov Lawrence Livermore National Lab PacBell Net: (510) 423-0406Received on Wed Dec 21 1994 - 18:27:48 CET