Printing to a File

This task explains how to print to a file.
Open the document Print.CATProduct.
  1. Select File > Print (or press CTRL+P) to display the Print dialog box.

    The type of printer you choose determines the default settings in the dialog box.
    You can also print to a file via:
    • the Print button in the Capture Preview window you access by selecting Tools > Image > Capture
    • the Print contextual command when selecting Tools > Image > Album.
  2. Select a printer name. 

  3. Select the Print to file check box:

    Note that when selecting a printer on Windows, you can use the printers provided by Dassault Systèmes.
  4. Enter a file name, or click File Name... to open the Print to File dialog box:

  5. Type the name of the file in which you will store the image printout, then click the Save button to save the file and return to the Print dialog box.

    The file is saved with the .prn extension (the only extension available). The information in the file depends on the printer you selected in the Print dialog box.
    Note that using More... is relevant only when printing multiple pages. Refer to Printing Documents with Multiple Sheets for detailed information.
  6. When printing to a 3D PLM Printer (refer to Adding a Printer for detailed information), you can click Properties... to access the printer properties:

  7. In the Submission Scripts area, click Custom next to "Declaration" to specify the default output file name: each time you print a document, an output file is created at the location you specify in the text box.

  8. Click Edit Script... which is now activated. This button lets you access the Runtime Script in the window below:

  9. You can use the following environment variable contained in the default script to create your own script:

    CATOUT=C:\DOCUME~1\ajt\LOCALS~1\Temp\catout_%CATPRT_DOC_SHEET_NUM%.out indicates the location, name and number of the document to be printed where:

    • "C:\DOCUME~1\ajt\LOCALS~1\Temp\" is the location of the document

    • "catout_%CATPRT_DOC_SHEET_NUM%.out" indicates the name (stored in "catout.out") and number (stored in "%CATPRT_DOC_SHEET_NUM%.out") of the document.

      For instance, when using a PostScript printer, you can use this variable the following way:

      set CATOUT=e:\Temp\test_ %CATPRT_DOC_SHEET_NUM%.ps

      to specify that the name of the document to be printed is "test.ps" and is located in "e:\temp".

  10. Click OK to validate your modification in the script window then OK again to close the Printer Properties dialog box.

  11. Click Apply or OK to save the file.

  12. To print the file, access the folder in which the file has been saved and use the copy command, for example:

    copy myfile.prn LPT1

    where "LPT1" is the local print port,

    or if the printer is on a network:

    copy myfile.prn \\servername\printername

    where servername is the name of the print server, and printername is the name of the printer.

    On UNIX, use the operating system command appropriate for your platform.

Texts created with a bold Stroke font are printed with a 0.7 mm thickness and therefore, they may not be read correctly if their size is small. This behavior is applicable for the Print to file option as well as for any other print capability (i.e. Quick Print, printing without selecting the Print to file check box, etc.).