首页 >> CST教程 >> CST2013在线帮助系统 |
Post Processing Template LayoutThe template based post processing is a convenient way to automate various post processing steps to obtain 0D, 1D and 1D complex results.Each template is defined as a VBA macro in
a single file with the extension 'rtp'. All these files are located in
subfolders of the folder 'Result Templates' within the library path (File
|
Type |
Evaluation method called by framework |
expected return type |
"0D" |
Evaluate0D |
double |
"1D" |
Evaluate1D |
Result1D object |
"1DC" |
Evaluate1DComplex |
Result1DComplex object |
"M0D" |
EvaluateMultiple0D |
double |
"M1D" |
EvaluateMultiple1D |
Result1D object |
"M1DC" |
EvaluateMultiple1DComplex |
Result1DComplex object |
Note: The Define function may not be omitted and it needs to call "StoreTemplateSetting".
Function Evaluate0D
Syntax: Function Evaluate0D() As Double
The result of the 0D evaluation is required to be a single double value that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "0D".
Function Evaluate1D
Syntax: Function Evaluate1D() As Object
The result of the 1D evaluation is required to be a Result1D object a that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "1D".
Function Evaluate1DComplex
Syntax: Function Evaluate1DComplex() As Object
The result of the 1DComplex evaluation is required to be a Result1DComplex object that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "1DC".
Function EvaluateMultiple0D
Syntax: Function EvaluateMultiple0D(nCount As Long, sName As String, sTableName As String) As Double
This function can be used to create multiple table results from only one result template. The variable 'nCount' contains the number of the current iteration as a one-based index. The variable 'sName' contains the result name of the template that is being evaluated. The variable 'sTableName' is expected to be set within the EvaluateMultiple0D - function and it defines the name of the table that will be created out of the returned result value (which, in contrast to the single evaluation functions, may be different from 'sName') The framework keeps calling the function as long as a nonempty string is assigned to the variable "sTableName".
The result of the multiple 0D evaluation is required to be a double value that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "M0D".
Function EvaluateMultiple1D
Syntax: Function EvaluateMultiple1D(nCount As Long, sName As String, sTableName As String) As Object
This function can be used to create multiple table results from only one result template. The variable 'nCount' contains the number of the current iteration as a one-based index. The variable 'sName' contains the result name of the template that is being evaluated. The variable 'sTableName' is expected to be set within the EvaluateMultiple1D - function and it defines the name of the table that will be created out of the returned result value (which, in contrast to the single evaluation functions, may be different from 'sName') The framework keeps calling the function as long as a nonempty string is assigned to the variable "sTableName".
The result of the multiple 1D evaluation is required to be a Result1D object that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "M1D".
Function EvaluateMultiple1DComplex
Syntax: Function EvaluateMultiple1DComplex(nCount As Long, sName As String, sTableName As String) As Object
This function can be used to create multiple table results from only one result template. The variable 'nCount' contains the number of the current iteration as a one-based index. The variable 'sName' contains the result name of the template that is being evaluated. The variable 'sTableName' is expected to be set within the EvaluateMultiple1DComplex - function and it defines the name of the table that will be created out of the returned result value (which, in contrast to the single evaluation functions, may be different from 'sName') The framework keeps calling the function as long as a nonempty string is assigned to the variable "sTableName".
The result of the multiple 1DComplex evaluation is required to be a Result1DComplex object that needs to be assigned to the function name.
Note: This function is necessary if the template type was set to "M1DC".
Definition of Variables
Use the StoreScriptSetting and GetScriptSetting VBA command to store and restore data. For testing the macros outside the postprocessing framework (e.g. inside the macro editor) the ActivateScriptSettings and ClearScriptSettings commands may store, restore and reset the script setting data base. See Visual Basic (VBA) Language Overview for details.
See also
Template Based Postprocessing Overview, Template Based Postprocessing Dialog, Visual Basic (VBA) Language Overview
HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |