6. Overview Automation¶
See Overview Automation for a full description.
Functions |
|
---|---|
auto_AddToUI adds a UniScript function to UniPlot’s user interface. The function will be added to the Report Menu to the specified category. |
|
auto_CloseDocument closes the active document. If the document was not saved with the auto_SaveDocumentAs function, it will close without being saved. |
|
auto_AddPage adds a new page to the document. |
|
auto_GetFileNameDialog displays a dialog box which can be used to select up to 16 file names. The function can be used within an automation script. |
|
auto_ImportData opens a data file and converts it to a UniPlot data file (.nc2). The netCDF file is saved in the directory of the source data file or in the directory specified in Tools=>More Options dialog. The function can be used to import data from all supported file formats (Text-, Excel-, netCDF-Files etc.). For Excel files, the table name can be specified as the second parameter. |
|
auto_LoadDataset loads a 1D, 2D, or 3D dataset from a data file opened with the function auto_ImportData. |
|
auto_LoadStyleFile loads a style file. The style file contains descriptions which specify the style of a dataset. Some example files can be found in the the UniPlot Sample directory. They have the file name extension |
|
auto_LoadTemplate opens a template. |
|
The auto_PrintDocument function prints the entire document to the active printer. |
|
auto_PrintPage prints the page created with the auto_LoadTemplate function to the active printer. |
|
auto_ReadNCText reads an attribute from the most recently imported data file. |
|
auto_ReplaceText executes a find and replace command. The function searches in text objects and axis titles for the find text and replaces it with the specified text. |
|
auto_ReplaceTextDialog can be used within an automation script to show a text dialog box. |
|
auto_ReplaceTextFromNCFile searches the given page for bookmarks (strings enclosed in dollar signs, Example |
|
auto_SaveDocumentAs saves the document created with the auto_LoadTemplate function under a new name. |
|
auto_ScaleAxes re-scales all diagrams on the page created with the auto_LoadTemplate function, so that all datasets on the diagrams are completely visible. |
|
auto_SetDatasetStyle sets the dataset style for the next dataset to be created with the auto_LoadDataset function. |
|
auto_SetLegendText creates a legend entry for 1D and 2D datasets. If the function is called without parameters, the file name from the loaded data will be used as text. |
|
auto_UpdatePage should be the last function called to finish the template page. The function copies the created legend text in the text object with the |
|
auto_UpdateLegendSize updates the size of the legend, already set in the template with the |
|
XLSREPORT_CreateFromTemplate inserts data into an MS-Excel template. |
Functions for x/y Datasets (1D and 2D Dataset) |
|
---|---|
auto_xy_Add creates a new dataset from the sum of the y-coordinates of 2D datasets. |
|
auto_xy_Correlate creates a new dataset by using the interpolated y-coordinates of the first dataset as x-values and the y-coordinates of the second datset as y-values. |
|
auto_xy_CorrelationCoefficient calculates the correlation coefficient. |
|
auto_xy_CreateDataset creates a new 2D dataset. |
|
auto_xy_CreateErrorDataset creates a new 2D dataset with error data. |
|
auto_xy_CreateRegion creates a new dataset by concatenating two datasets. The second dataset will be added to the first dataset in reverse order. |
|
Diese Funktion ist veraltet. Neue Scripte sollten die Funktion XYSetFilterFunctions verwenden. |
|
Creates a new dataset by adding the y-coordinates of the given 2D datasets. |
|
auto_xy_Envelope creates an upper or lower envelope (hull, boundary). |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_GetParentHandle returns the handle of the diagram hLayer, page hPage and document hDoc in which the dataset is located. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_IntegralValue returns the integral value of the given dataset as a string. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_LabelDataPoints labels the data points of a 1D or 2D dataset with its y value. If the dataset contains more than 50 data points, 50 labels will be distributed evenly over the data points. |
|
auto_xy_LabelDataset labels the first or last point of a 2D dataset with its name. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_Max creates a new dataset from the maximum values of the y coordinates of the given 2D datasets. |
|
Creates a new dataset from the mean values of the y coordinates of the given 2D datasets. |
|
auto_xy_MinMaxValue returns a string with the minimum and maximum value (y-coordinates) of the specified dataset. |
|
auto_xy_Mult creates a new dataset by multiplying the y-coordinates of the given 2D datasets. |
|
auto_xy_OneDown moves the specified dataset one position down in the drawing order. |
|
auto_xy_OneUp moves the specified dataset one position up in the drawing order. |
|
auto_xy_Peaks creates a new dataset with the local minima and maxima of the given dataset. See detect_peaks. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_SetStyleAttribs sets the line and/or marker style, color, etc. without using the style file. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_Statistic calculates some statistical values and returns them as a string. |
|
The function is obsolete. New scripts should use the XYSetFilterFunctions function. |
|
auto_xy_Sub creates a new dataset by subtracting the y coordinates of the given 2D datasets. |
|
Creates a histogram for the given 2D dataset. |
Functions for x/y/z Datasets (3D Datasets) |
|
---|---|
auto_xyz_Add creates a new dataset by adding the z-coordinates of the given 3D datasets. |
|
auto_xyz_CreateColorLegend creates a color legend for the given 3D dataset. |
|
auto_xyz_CreateHull calculates a non convex data hull (Full Load Line, WOT) for the given 3D dataset if the data was measured at approx. constant x- (e.g. speed) or y-values. |
|
auto_xyz_CreateIsolines creates isolines for a 3D dataset. |
|
auto_xyz_CreatePowermap creates a power map (power hyperbola). |
|
auto_xyz_CrossSectionXY creates a new dataset by by calculating the z coordinates for the given curve coordinates. |
|
auto_xyz_Div creates a new dataset by dividing the z coordinates of the given 3D datasets. |
|
auto_xyz_Interpolate calculates a new interpolation matrix for the given 3D dataset. |
|
auto_xyz_Mean creates a new dataset by calculating the mean value of the z coordinates of the given 3D datasets. |
|
auto_xyz_Mult creates a new dataset by multiplying the z coordinates of the given 3D datasets. |
|
auto_xyz_RelDiv creates a new dataset by calculating the relative distribution value of the z coordinates of the given 3D datasets. |
|
auto_xyz_SetIsolineStyle sets the line style for all Isolines of a 3D dataset to the specified style. |
|
auto_xyz_Statistic creates a text element with some statistical information for the given 3D dataset. |
|
auto_xyz_Sub creates a new dataset by subtracting the z coordinates of the given 3D datasets. |
id-1891577