hi elmotec,
this is an hard task, but we don't like the easy ones !
In theory it is impossible change quality, but using a trick
we can.
Comment the print line in yourplot.plot_cfg
( qprt .... ) and from Catia make a little plot: in
your HOME dir you will get a catout.gl2 file.
If it is enough little you can edit it by vi, or use pg.
You can see something as :
%BPINAD1,5SP1PS8480,8480NP256LA1,1,2,5AC0,0QL100TR0MC0PC9,
and more, more, more ....
If you see Catia "cables" QL100 inside hpgl file, and don't
exist parameters in Catia to change it. We have to change it
after the file is created.
You have to build 2 programs or scripts :
1) An hpgl file is a stream of records each of one is a plot
instruction; these records are not separated by a linefeed
(hex 10) but simply by a ";" . For this vi tells you :
cannot open line excedeed 2040 chars : it sees just one line
long all file.
The first program/script has to substitute each ";"
with a LF
Make a script, call it "liner.ksh" and write in :
awk 'BEGIN {RS = ";" } {printf "%s;\n", $0} '
( just 1 row, chmod a+x it )
Get a little catout.gl2 and enter
prompt> cat catout.gl2 | liner.ksh
You can see your file splitted in lines
( cat catout.gl2 | liner.ksh > out
vi out )
2) the second task is to change QL100 in QL0
Make a script, call it changer.ksh an write in it:
sed 's/QL100/QL0/'
chmod it and enter
prompt> cat catout.gl2 | liner.ksh | changer.ksh
better
prompt> cat catout.gl2 | liner.ksh | changer.ksh > out
enq -P yourqueue out
You will see your plotter go very fast !.....
but ....
there is a problem. With long (normal) files (more than 2k)
this mechanism hangs: the fisrt script fails, becouse the
awk cannot manage lines longer than 2048 bytes.
I wrote a C program that avoids this problem, and if you
submit your e-mail, I can send it to you.
You will change your plot_cfg as:
cat $CATOUT | liner.ksh | changer.ksh > catout.fast
qprt -P lp0 catout.fast
bye