Download pro Fit 5.1 handbook - quantum

Transcript
fileName is the name of the file. If fileName contains a simple file name, the file is placed in pro Fit's
folder. If fileName contains a file path (e.g. 'HD:MyFolder:file'), the file is placed in the folder
defined in the file path. Pass '?' for fileName to bring up a dialog box asking the user where to save
the file.
Use SetTextFileFormat if you want to specify how the text file must be formatted.
SaveDrawingAs
procedure SaveDrawingAs(windowID:longint; fileName:Str255;
format:longint);
Saves a drawing window as a pro Fit file (if format = defaultFormat), a PICT file (if format =
pictFormat) or a EPS file (if format = epsFormat).
windowID is the window ID of the window, such as it is returned by GetWindowID or FrontWindow.
fileName is the name of the file. If fileName contains a simple file name, the file is placed in pro Fit's
folder. If fileName contains a file path (e.g. 'HD:MyFolder:file'), the file is placed in the folder
defined in the file path. Pass '?' for fileName to bring up a dialog box asking the user where to save
the file.
SaveDrawingAs(L,'bla',default) is equivalent to SaveWindowAs(L,'bla').
SaveParameterSet
procedure SaveParameterSet(optional parameter list);
Saves the the parameters that currently appear in the Parameter window. Parameters:
set
(String)The name of the set. Omit to save all sets belonging to the given
function.
forAll
(Boolean)True if the parameter set is to be available for all functions, false
if the parameter set is only to be available for the current function.
Default: false
file
(String)The file where the parameter set must be saved. Omit to save as
permanent sets.
See also: AddParameterSet, UseParameterSet, LoadParameterSet, DeleteParameterSet
Save
procedure Save(windowID:longint);
Equivalent to choosing Save from the File menu. Causes a run time error the window has never been
saved.
SaveWindow
procedure SaveWindow(optional parameter list);
Saves a window. Parameters:
window
(Longint or String) The name or window ID of the window. Default:
Front window
file
(String) The file to save the window into. Use a simple name or a file
path. Default: the file currently attributed to the window.
type
(Integer) The type of the file if non-default type (textFileType ,
PICTType, EPSFType). Omit for default type. To control the format for
exporting data to a text file, call DataExportOptions before calling
SaveWindow.
See also GetFileDirectory, SetDefaultDirectory, OpenFile.
A-52
Appendix A: Predefined functions, procedures and arrays