Functions | |
Boolean_t | TecUtilNewLayout (void) |
Delete all frames and data sets (clear the current layout). | |
Boolean_t | TecUtilOpenLayout (const char *FName, StringList_pa AltInstructions, Boolean_t Append) |
Open and read in a new layout file. | |
Boolean_t | TecUtilOpenLayoutX (ArgList_pa ArgList) |
Open and read in a new layout file. | |
Boolean_t | TecUtilSaveLayout (const char *FName, Boolean_t UseRelativePaths) |
Save the current layout to a file. | |
Boolean_t | TecUtilSaveLayoutX (ArgList_pa ArgList) |
Save the current layout to a file. | |
Boolean_t | TecUtilDataSetAddJournalCommand (const char *CommandProcessorIDString, const char *Instructions, const char *RawData) |
Adds a command to the data journal. | |
Boolean_t | TecUtilDataSetAddRawJournalCom (const char *Command) |
Adds a raw macro command to the data journal. | |
char * | TecUtilGetCurLayoutFName (void) |
Get the current layout file name. | |
Boolean_t | TecUtilStateIsProcessingJournal (void) |
Query Tecplot to find out if Tecplot is in the middle of processing the data journal. | |
Boolean_t | TecUtilStateIsProcessingLayout (void) |
Query Tecplot to find out if Tecplot is in the middle of processing a layout. |
Boolean_t TecUtilDataSetAddJournalCommand | ( | const char * | CommandProcessorIDString, | |
const char * | Instructions, | |||
const char * | RawData | |||
) |
Adds a command to the data journal.
CommandProcessorIDString | The ID string of the command processor. You must have registered a macro command callback with Tecplot to use this functionality. See TecUtilMacroAddCommandCallback for more information on registering a macro command callback | |
Instructions | Command Instrunctions | |
RawData | Raw Data. Please see TecUtilMacroRecordExtComRaw() for a description of the raw data format. |
Instructions String must have a valid address and non-zero length.
RawData Pointer must be a valid address or NULL.
Must have one or more frames.
INTEGER*4 FUNCTION TecUtilDataSetAddJournalCommand( & AddOnIDString, & Instructions, & RawData) CHARACTER*(*) AddOnIDString CHARACTER*(*) Instructions CHARACTER*(*) RawData
Python Syntax:
Results = TecUtil.DataSetAddJournalCommand(CommandProcessorIDString, Instructions, RawData) Input: CommandProcessorIDString string Instructions string RawData string Output: Results[0] ReturnVal boolean
Boolean_t TecUtilDataSetAddRawJournalCom | ( | const char * | Command | ) |
Adds a raw macro command to the data journal.
Command | The raw macro command to add to the journal. |
Must have one or more frames.
INTEGER*4 FUNCTION TecUtilDataSetAddRawJournalCom(Command) CHARACTER*(*) Command
Python Syntax:
Results = TecUtil.DataSetAddRawJournalCom(Command) Input: Command string Output: Results[0] ReturnVal boolean
char* TecUtilGetCurLayoutFName | ( | void | ) |
Get the current layout file name.
SUBROUTINE TecUtilGetCurLayoutFName( & Result, & ResultLength) CHARACTER*(*) Result INTEGER*4 ResultLength
Python Syntax:
Results = TecUtil.GetCurLayoutFName()
Output:
Results[0] ReturnVal string
Boolean_t TecUtilNewLayout | ( | void | ) |
Delete all frames and data sets (clear the current layout).
A blank default frame will be created for you.
INTEGER*4 FUNCTION TecUtilNewLayout()
Python Syntax:
Results = TecUtil.NewLayout()
Output:
Results[0] ReturnVal boolean
Clear the current layout:
Boolean_t IsOk = TecUtilNewLayout();
Boolean_t TecUtilOpenLayout | ( | const char * | FName, | |
StringList_pa | AltInstructions, | |||
Boolean_t | Append | |||
) |
Open and read in a new layout file.
FName | The name of the layout file to open. This should be the full path to the layout file. If the full path is not specified, any relative paths in your layout may not be correctly resolved. | |
AltInstructions | Alternate instructions for the layout file. In most cases, this will be a string list containing file names which will override the data files listed in the layout file. Use NULL to load the data referenced in the layout file | |
Append | TRUE to append the new layout file to the current layout or FALSE to replace the current layout |
INTEGER*4 FUNCTION TecUtilOpenLayout( & FName, & AltInstructionsPtr, & Append) CHARACTER*(*) FName POINTER (AltInstructionsPtr, AltInstructions) INTEGER*4 Append
Python Syntax:
Results = TecUtil.OpenLayout(FName, AltInstructions, Append) Input: FName string AltInstructions sequence of strings Append boolean Output: Results[0] ReturnVal boolean
Open a layout file called "experiment.lay." Then, append a layout called "calculate.lay," overriding the first data file referenced in that layout with a file called "newdata.plt":
StringList_pa AltInst = TecUtilStringListAlloc(); TecUtilStringListAppendString(AltInst, "newdata.plt"); TecUtilOpenLayout("C:\\experiment.lay", (StringList_pa)NULL, FALSE); TecUtilOpenLayout("C:\\calculate.lay", AltInst, TRUE); TecUtilStringListDealloc(&AltInst);
Boolean_t TecUtilOpenLayoutX | ( | ArgList_pa | ArgList | ) |
Open and read in a new layout file.
ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. Arglist Values SV_FNAME
SV_ALTINSTRUCTIONS
SV_APPEND
SV_APPENDTOCURPAGE
|
INTEGER*4 FUNCTION TecUtilSaveLayoutX(ArgListPtr) POINTER (ArgListPtr, ArgList)
Python Syntax:
Results = TecUtil.OpenLayoutX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal boolean
Open a layout file called "experiment.lay." Then, append a layout called "calculate.lay," overriding the first data file referenced in that layout with a file called "newdata.plt":
TecUtilArgListClear(ArgList); TecUtilArgListAppendString(ArgList, SV_FNAME, "C:\\experiment.lay"); TecUtilOpenLayoutX(ArgList); StringList_pa AltInst = TecUtilStringListAlloc(); TecUtilStringListAppendString(AltInst, "newdata.plt"); TecUtilArgListClear(ArgList); TecUtilArgListAppendString(ArgList, SV_FNAME, "C:\\calculate.lay"); TecUtilArgListAppendStringList(ArgList, SV_ALTINSTRUCTIONS, AltInst); TecUtilArgListAppendInt(ArgList, SV_APPEND, TRUE); TecUtilOpenLayoutX(ArgList); TecUtilStringListDealloc(&AltInst); ...
Save the current layout to a file.
You must supply the file name.
FName | The name of the layout file to save | |
UseRelativePaths | Set to TRUE to make all of the files referenced by the layout file use paths relative to the current directory. Set to FALSE to make all of the files referenced by absolute paths |
FName String must have a valid address and non-zero length.
INTEGER*4 FUNCTION TecUtilSaveLayout( & FName, & UseRelativePaths) CHARACTER*(*) FName INTEGER*4 UseRelativePaths
Python Syntax:
Results = TecUtil.SaveLayout(FName, UseRelativePaths) Input: FName string UseRelativePaths boolean Output: Results[0] ReturnVal boolean
Save a layout file called temp.lay, using absolute paths:
Boolean_t IsOk = TecUtilSaveLayout("temp.lay", FALSE);
Boolean_t TecUtilSaveLayoutX | ( | ArgList_pa | ArgList | ) |
Save the current layout to a file.
ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. Arglist Values SV_FNAME
SV_INCLUDEDATA
SV_INCLUDEPREVIEW
SV_USERELATIVEPATHS
SV_POSTLAYOUTCOMMANDS
SV_PAGELIST
|
ArgList Argument list must be valid.
INTEGER*4 FUNCTION TecUtilSaveLayoutX(ArgListPtr) POINTER (ArgListPtr, ArgList)
Python Syntax:
Results = TecUtil.SaveLayoutX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal boolean
Save a layout package named temp.lpk, without a preview image:
TecUtilArgListClear(ArgList); TecUtilArgListAppendString(ArgList, SV_FNAME, "temp.lpk"); TecUtilArgListAppendInt(ArgList, SV_INCLUDEDATA, TRUE); TecUtilArgListAppendInt(ArgList, SV_INCLUDEPREVIEW, FALSE); IsOk = TecUtilSaveLayoutX(ArgList);
Save a layout named temp.lay using relative path names:
TecUtilArgListClear(ArgList); TecUtilArgListAppendString(ArgList, SV_FNAME, "temp.lay"); TecUtilArgListAppendInt(ArgList, SV_USERELATIVEPATHS, TRUE); IsOk = TecUtilSaveLayoutX(ArgList);
Assume that we have a layout consisting of half a dozen pages all identified by their unique page IDs. Save a partial layout containing only a sub-set of the layout's pages. In this example we assume My2DPlotPageID and My3DPlotPageID where acquired by earlier calls to TecUtilPageGetUniqueID().
Set_pa PageList = TecUtilSetAlloc(FALSE); TecUtilSetAddMember(PageList, TecUtilPageGetPosByUniqueID(My2DPlotPageID)), FALSE); TecUtilSetAddMember(PageList, TecUtilPageGetPosByUniqueID(My3DPlotPageID)), FALSE); ArgList_pa ArgList = TecUtilArgListAlloc(); TecUtilArgListAppendString(ArgList, SV_FNAME, "partial.lay"); TecUtilArgListAppendInt(ArgList, SV_USERELATIVEPATHS, TRUE); TecUtilArgListAppendSet(ArgList, SV_PAGELIST, PageList); IsOk = TecUtilSaveLayoutX(ArgList); TecUtilArgListDealloc(&ArgList); TecUtilSetDealloc(&PageList);
Boolean_t TecUtilStateIsProcessingJournal | ( | void | ) |
Query Tecplot to find out if Tecplot is in the middle of processing the data journal.
This function is Thread Safe.
INTEGER*4 FUNCTION TecUtilStateIsProcessingJournal()
Python Syntax:
Results = TecUtil.StateIsProcessingJournal()
Output:
Results[0] ReturnVal boolean
Boolean_t TecUtilStateIsProcessingLayout | ( | void | ) |
Query Tecplot to find out if Tecplot is in the middle of processing a layout.
This function is Thread Safe.
INTEGER*4 FUNCTION TecUtilStateIsProcessingLayout()
Python Syntax:
Results = TecUtil.StateIsProcessingLayout()
Output:
Results[0] ReturnVal boolean