Network plotting with CATIA/CADAM Drafting (CCD) on Windows NT4 December 1997 This is a supplement to the CATIA/CADAM Drafting Installation Guide for Windows NT. This paper provides instructions to setup a printer spooler on Windows NT to facilitate plotting to a network plotter from CCD. Refer to the Windows NT documentation for additional information on creating a printer. These instructions will help you setup print spooling on Windows NT 4.0 for a network plotter that is controlled by a print server, either internal or external to the plotter. These print servers can be accessed by hostname or IP address, and contain their own LPR queues. It is assumed throughout this paper that the TCP/IP protocol has been installed and is functioning properly. Even though plot files can be sent to a plotter using the LPR command, it should only be used for testing purposes. Windows NT does not provide a good queuing mechanism for LPR, so subsequent plot jobs can be lost. Hence, this paper will show you how to setup a printer spooler on each Windows NT client. Installing the printer on the local workstation gives the user better monitoring capabilities of his/her plot jobs. CCD does not use the Windows NT print drivers or plotter manufacturers’ drivers. The print spooling is only used to manage plot job queues. The following instructions will show you what is required to accomplish this. Sample batch (.bat) files are also shown at the end of this paper.
Note: All the screens shown are from Windows NT 4.0
Note: printing a test page does not test accessing the printer via the Share Name.
This completes the printer installation. The Printers panel will now show the new printer. For further printer configuration options, such as scheduling, security, device settings, etc., select the new printer from the Printers panel using the right mouse button, then select Properties. Please refer to the Windows NT documentation for further details. Provided that you have modified the .bat file that you are going to use (see the sample batch file scripts starting on page 10), you should now be able to submit plots from CCD to the newly created printer. For instructions on how to plot a model from CCD, refer to the CATIA/CADAM Drafting Installation Guide for Windows NT.
If the print spooling is done at the local NT workstation, the CCD user can monitor the status of his/her plot jobs by displaying the Printer Status in the background. To do this, double-click on the printer. When the plot job completes, a notification will be displayed as shown above. Note: If print spooling is done at another Windows NT workstation or server, the user will not see the "print notification" screen.
Sample batch file 1
ECHO OFF rem This bat file may be used to send the plot
Sample batch file 2
ECHO OFF rem This bat file may be used to send the plot
In some cases, you may want to modify the header/trailer information for a particular plotter and insert printer control language to indicate the format of the language that follows, for example. Some printer/plotter manufacturers, such as CalComp and Hewlett Packard, may give you these options. To accomplish this, all you need to do is provide plotter specific commands or control codes at the beginning and/or at the end of the file that is sent to the plotter. The sample .bat file above shows how to add header and trailer information to the plot output file before it is sent to the plotter. In this example, two files containing header and trailer control codes for the plotter are inserted in the plot output file before it is sent to the plotter. The first is called header.txt and is copied to a file called %2.tmp. The plot output file (%2) is appended to the %2.tmp file and finally, the trailer.txt file is appended to the %2.tmp file. The %2.tmp is then sent to the plotter using the copy command.
Sample batch file 3
ECHO OFF rem This bat file may be used to send the plot rem output file to a plotter.
For test purposes only, you can use the above sample .bat file to verify that you can access a network plotter from your NT workstation. In the example above, the plotter’s print server’s hostname is dj650 and "raw" means to use its default print queue. While testing, comment the last line of the .bat file. This is useful because when you submit a plot job from CCD the plot output file will not be deleted. Once you have a plot file you can run this .bat file (or the lpr command) from a DOS shell without having to submit a plot from CCD.
|