AnalysisTemplateParameter Class Reference
AnalysisTemplateParameter class is used to specify parameters required for applying analysis templates.
The class can be called from Application class.
.
More...
Public Member Functions | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| void | SetEquationNames (int modelIndex, StringList &equationnames) |
| Specifies the equation to be linked. More... | |
| void | SetFilepath (String &filepath) |
| Specifies the path of the analysis template file. More... | |
| void | SetModelNames (StringList &modelnames) |
| Specifies the model name to be applied. More... | |
| void | SetPartNames (int modelIndex, StringList &partnames, bool renameParts=false) |
| Specifies the part to be linked. More... | |
| void | SetReferenceNames (int modelIndex, StringList &refnames, bool renameReferences=false, bool onlyAddExistedReferences=false) |
| Specifies the set to be linked. More... | |
| void | SetSetNames (int modelIndex, StringList &setnames, bool renameSets=false, bool onlyAddExistedSets=false) |
| Specifies the set to be linked. More... | |
| void | SetTemplatePath (String &path) |
| Specifies the path of the analysis template of the toolbox. More... | |
Detailed Description
AnalysisTemplateParameter class is used to specify parameters required for applying analysis templates.
The class can be called from Application class.
.
Example of creating the class object:
app.CreateAnalysisTemplateParameter()
Member Function Documentation
| bool AnalysisTemplateParameter::IsValid | ( | ) |
Returns True if an object is valid.
- Returns
- Whether or not the AnalysisTemplateParameter object is valid
| void AnalysisTemplateParameter::SetEquationNames | ( | int | modelIndex, |
| StringList & | equationfnames | ||
| ) |
Specifies the equation to be linked.
- Parameters
-
modelIndex Model index of template to set equationnames Name or index of a table defined with a link between equation in a template and CAD model
- equationnames
- Specify the following format when setting tables with the equation names above:
1: Equation name of a template2: Equation index of a template3: Equation name of a CAD model that a template is applied4: Equation index of a CAD model that a template is applied.The same format is repeated for the same number of equations.
| void AnalysisTemplateParameter::SetFilepath | ( | String & | filepath | ) |
Specifies the path of the analysis template file.
- Parameters
-
filepath Analysis template file path
| void AnalysisTemplateParameter::SetModelNames | ( | StringList & | modelnames | ) |
Specifies the model name to be applied.
- Parameters
-
modelnames List of model names to associate with the model of analysis template
| void AnalysisTemplateParameter::SetPartNames | ( | int | modelIndex, |
| StringList & | partnames, | ||
| bool | renameParts = false |
||
| ) |
Specifies the part to be linked.
- Parameters
-
modelIndex Model index of template to set partnames Name or index of a table defined with a link between parts in a template and CAD model renameParts True=1 : Renames part name to match part name of templateFalse=0 : Does not rename part name to match template
- partnames
- Specify the following format when setting tables with the partnames above:
The 2nd and 5th index is used when there are multiple parts with the same name.1: Set name of a template (or group part name)2: Part index of a template (or part group index)4: Part name (or part group name) of a CAD model that a template is applied5: Part index (or part group index) of a CAD model that a template is applied6: Part type (0: part, 1: part group) of a CAD model that a template is appliedThe same format is repeated for the same number of parts (or groups of parts).
- 0 is specified when there are no multiple parts with same name.
- Numbers higher than 0 are specified when there are multiple parts with the same name.
For example, 0, 1, and 2 are specified for the indexes of each part when there are three parts with the same name
- This script can link in group status as long as a type is specified.
Specify “0” for parts and “1” for part group.
- 0 is specified when there are no multiple parts with same name.
| void AnalysisTemplateParameter::SetReferenceNames | ( | int | modelIndex, |
| StringList & | refnames, | ||
| bool | renameReferences = false, |
||
| bool | onlyAddExistedReferences = false |
||
| ) |
Specifies the set to be linked.
- Parameters
-
modelIndex Model index of template to set refnames Name or index of a table defined with a link between reference targets in a template and CAD model renameReferences True=1 : Renames reference target name to match templateFalse=0 : Does not rename reference target name to match templateonlyAddExistedReferences True=1 : Only add reference targets existed in modelFalse=0 : Adds empty reference targets if they are not existed in model
- refnames
- Specify the following format when setting tables with the reference target names above:
The 2nd and 5th index is used when there are multiple reference targets with same name.1: ReferenceTarget name of a template2: ReferenceTarget index of a template4: ReferenceTarget name of a CAD model that a template is applied5: ReferenceTarget index of a CAD model that a template is applied.The same format is repeated for the same number of reference targets.
- 0 is specified when there are no multiple reference targets with same name.
- Numbers higher than 0 are specified when there are multiple reference targets with the same name.
For example, 0, 1, and 2 are specified for the indexes of each reference target when there are three reference targets with the same name.
Specify either "Face," "Edge," or "Vertex" for the reference target type in row 3 and row 6.
- 0 is specified when there are no multiple reference targets with same name.
| void AnalysisTemplateParameter::SetSetNames | ( | int | modelIndex, |
| StringList & | setnames, | ||
| bool | renameSets = false, |
||
| bool | onlyAddExistedSets = false |
||
| ) |
Specifies the set to be linked.
- Parameters
-
modelIndex Model index of template to set partnames Name or index of a table defined with a link between sets in a template and CAD model renameSets True=1 : Renames set name to match templateFalse=0 : Does not rename set name to match templateonlyAddExistedSets True=1 : Only add sets existed in modelFalse=0 : Adds empty sets if they are not existed in model
- setnames
- Specify the following format when setting tables with the set names above:
The 2nd and 5th index is used when there are multiple parts with same name.1: Set name of a template2: Set index of a template4: Set name of a CAD model that a template is applied5: Set index of a CAD model that a template is applied.The same format is repeated for the same number of sets.
- 0 is specified when there are no multiple parts with same name.
- Numbers higher than 0 are specified when there are multiple parts with the same name.
For example, 0, 1, and 2 are specified for the indexes of each set when there are three sets with the same name.
Specify either "Part," "Face," "Edge," or "Vertex" for the set type in row 3 and row 6.
- 0 is specified when there are no multiple parts with same name.
| void AnalysisTemplateParameter::SetTemplatePath | ( | String & | path | ) |
Specifies the path of the analysis template of the toolbox.
- Parameters
-
path Path of analysis template in Toolbox