Documentation Center

  • Trials
  • Product Updates

sfprint

Print graphical view of charts

Syntax

  • sfprint example
  • sfprint(objects) example
  • sfprint(objects,format) example
  • sfprint(objects,format,output_option) example
  • sfprint(objects,format,output_option,print_entire_chart) example

Description

example

sfprint prints a PostScript file of the current chart to the default printer.

example

sfprint(objects) prints a PostScript file of all charts specified by objects to the default printer.

example

sfprint(objects,format) prints all charts specified by objects in the specified format to output files. Each output file matches the name of the chart and the file extension matches the format.

example

sfprint(objects,format,output_option) prints all charts specified by objects in the specified format to the file or printer specified in output_option.

example

sfprint(objects,format,output_option,print_entire_chart) prints all charts specified by objects in the specified format to the file or printer specified in output_option. As specified in print_entire_chart, prints either a complete or current view.

Examples

expand all

Print open chart

sfprint

Prints current chart to the default printer.

Print PostScript file of all charts specified in path

sfprint('sf_car/shift_logic');

Prints the chart with the path ‘sf_car/shift_logic' in PostScript format to the default printer.

Print chart specified in path to a JPG file format.

sfprint('sf_car/shift_logic','jpg')

Prints a copy of the chart ‘sf_car/shift_logic' in JPG format to the file ‘sf_car_shift_logic.jpg'.

Print chart in TIFF format to the clipboard.

sfprint(gcs,'tif','clipboard')

Prints the chart in the current system to the clipboard in TIFF format.

Print the current view of a chart.

sfprint('sf_car/shift_logic','png','file',0)

Prints the current view of ‘sf_car/shift_logic' in a PNG format to the file ‘sf_car_shift_logic.png'.

Input Arguments

expand all

objects — Identifier of charts to printgcb (default) | gcs | string

Identifier of charts to print, specified as a command or a string. Use:

  • gcb to specify the current block of the model.

  • gcs to specify the current system of the model.

  • a string to specify the path of a chart, model, subsytem, or block.

Example: sfprint(gcs)

Prints all the charts in the current system to the default printer.

Example: sfprint('sf_pool/Pool')

Prints the complete chart with the path 'sf_pool/Pool' to the default printer.

format — Output format of printed charts specified as a string‘bitmap' | 'eps' | ‘epsc' | ‘jpg' | ‘meta' | ‘png' | ‘ps' | ‘psc' | ‘tif'

Output format of the printed charts specified as one of these string values:

'bitmap'

Save the chart image to the clipboard as a bitmap (for Windows® operating systems only)

'eps'

Generate an encapsulated PostScript file

'epsc'

Generate a color encapsulated PostScript file

'jpg'

Generate a JPEG file

'meta'

Save the chart image to the clipboard as a metafile (for Windows operating systems only)

'png'

Generate a PNG file

'ps'

Generate a PostScript file

'psc'

Generate a color PostScript file

'tif'

Generate a TIFF file

Example: sfprint('sf_car/shift_logic','jpg')

Prints the complete chart with the path 'sf_car/shift_logic' in a JPEG format to a file in the current folder named 'sf_car_shift_logic.jpg'.

Data Types: char

output_option — Name of the printer or output file‘file' (default) | string | ‘clipboard' | ‘promptForFile' | ‘printer'

Name of the output file or printer specified as one of these values:

'file'

Send output to a default file with the name chart_name.file_extension. The file name is the name of the chart, with an extension that matches the output format.

string

Specify the name of the output file with a string.

'clipboard'

Copy output to the clipboard

'promptForFile'

Prompts the user interactively for path and file name.

'printer'

Send output to the default printer (use only with 'ps', or 'eps' formats)

Example: sfprint('sf_car/shift_logic','png','myFile')

Prints the complete chart whose path is 'sf_car/shift_logic' in the PNG format to a file in the current folder with the name 'myFile'.png.

Example: sfprint('sf_car/shift_logic,'ps','promptForFile')

Prints all charts in the current block of the model in PostScript format. An interactive window opens for each chart to prompt you for the path and name of the output file.

Data Types: char

print_entire_chart — View of charts to print1 (default) | 0

View of charts to print specified as a integer of value 0 or 1. A value of 1 prints the complete views of all the charts, whereas a value of 0 prints the current views of all the charts.

Example: sfprint(gcs,'png','file',0)

Prints the current view of all charts in the current system in PNG format using default file names.

See Also

| | | | |

Was this topic helpful?