plotting from catia (v4)

COE Administrator

plotting from catia (v4)
(in response to COE Administrator)
On AIX, you need to

1.) Add a printer/plotter device.
2.) Add a printer/plotter queue (which will be visible with
the UNIX lpstat or lpq commands).

[SMIT will do these two in one step.]

3.) Add a configuration file to one of the directories declared
as catia.PLOT_CFG (you can list this declaration with
catpath). This last step is what makes the plotter
visible on the V4 CATIA PLOT function menu.

It sounds like you've not done step 3. There are sample
configuration files for common plotters in
/home/catadm/adm/plot, and there is a "book" dedicated to
printing and plotting set-up in the V4 FrameViewer on-line
documentation that gives more detail.

Author: Leonard E. Salika

COE Administrator

plotting from catia (v4)
(in response to COE Administrator)
Ok now i can see the plotter.
Do I need to enable the server?
When I look at the status using lpstat it tell me there are no entries for this plotter.
However when I plot from the catia window it tells me that I was successful.

Author: dean wolfe

COE Administrator

plotting from catia (v4)
(in response to COE Administrator)
It is very likely that your plotter has an on-board memory or
disk buffer, which is large enough to hold your entire plot file.
A plot file will be visible in the output from lpstat only while
it is waiting to be transmitted to the plotter or in the process
of being transmitted. A modern plotter will tell the host computer
that the plot is "finished" as soon as it has succefully receieved
the entire file into its buffer so that the host computer can
begin sending the next file while the plotter is still drawing
the first. Once the plotter tells the host that the plot is
"finished", lpstat forgets about that plot file. The transfer
to a disk or memory buffer is very fast, so that to see it with
lpstat, you have to run the lpstat command very soon after the
plot_cfg script displays the message that it is done.

If you really needed to check this out and to see the plot file
with lpstat, try turning the plotter off before submitting the
plot from CATIA. That way the plot file will sit on the host
computer waiting to be transmitted to the plotter, and it will
be visible with lpstat at least until you turn the plotter back on.

You need to enable the lpd server only on a computer, which is
intended to act as a print server: that is, a computer which
will accept plot/print files from other computers and put them
in its own queue to be transmitted to the plotter.

You said that catplot reported that it was successful. Are
you getting your plots? If not, has catplot produced a
$HOME/CATPLOT.out file and a $HOME/catout.- file? The
$HOME/catout.- file is the file that needs to be sent to the
plotter. What happens if you run the command
"lpr -hPqueuename catout.-"? [You need to replace "queuename"
with your plotter's actual queue name and put the actual file
extension on "catout.-" in place of the "-", for example
"" or "".]

Author: Leonard E. Salika

COE Administrator

plotting from catia (v4)
A logical way of looking at CATIA plotting could be as follows. (and using AIX print commands)

If you submit a plot from interactive CATIA, but the plot does not appear on the plotter, where is the fault?
- is it with CATIA?
- is it with the spooling system?
- is it with the plotter?

To determine which it is, perform a logical sequence of checks.

1. Check the status of the queue which represents that plotter. (command is "qchk -A") If the queue is "down" bring the queue back up. (command is "qadm -U queuename")
2. If this fails to produce the plot, recheck the queue and if it has returned to a "down" state then check to see whether the plotter is switched on.
Switch the plotter on, bring the queue "up" again, and restart the queue.
If it is a network, or network attached plotter, try to communicate with the plotter using the "ping" command.

If when submitting a plot from CATIA and the plot doesn't arrive at the plotter, and you have checked that the status of the queue is ok, the plotter is switched on, and the network is ok, the problem may be with CATIA.
To determine if this is the case, take the queue of the relevant plotter "down" and resubmit the plot from CATIA. If the printing set up within CATIA is correct, the plot file should arrive at the queue and because the queue is "down" the plot file should be seen in the queue using the "qchk" command.
If it is in the queue then the problem is in the operating system (maybe the qdaemon process is not running) or plotter (maybe the plotter is expecting a different plot language ie. hpgl2, ppstscript, etc.)
If it is not in the queue then the problem is with the plotting set up within CATIA. The previous respondee has given an example of how to set this up, but you could also use the CATIA installation panels. ie. catinst/additional features/plotter management/add a plotter ......

Other points to note:
Did you set up a network printer from SMIT rather than a local printer (I guess you must have done this).
Have you got sufficient space in the file systems, namely /(root), /var and /home (or wherever your home files are).
Presumably the plot file is not too large to plot (you may need to declare the variable catia.BUFFER_PLOT if it is large plot.

good luck.

Author: DaveN