DesignTable class is used to a create design parameter table for a parametric analysis.
The class can be called from Study or AnalysisGroup class.
.
More...
Public Member Functions | |
| void | AddCadParameter (String ¶meterName) |
| Adds parameters of the CAD model as design variables. More... | |
| void | AddCadParameterVariableName (String ¶meterName, String &variableName=String()) |
| Adds parameters of the CAD model as design variables (Specified by variable name). More... | |
| void | AddCadParameterVariableNames (StringList ¶meterNames, StringList &variableNames=StringList()) |
| Adds parameters of multiple CAD models as design variables (Specified by variable name). More... | |
| void | AddCase () |
| Adds a parametric case. | |
| void | AddCaseGroup (String &name, String &indices) |
| Adds a new case group with the specified indices. If a group with the specified name already exists, the indices are added to the existing group. More... | |
| void | AddCases (int numCases) |
| Adds parametric cases that are specified as arguments. More... | |
| void | AddCasesToGroup (Variant &nameOrIndex, String &indices) |
| Adds cases to an existing case group. More... | |
| void | AddCircuitComponentProperty (Variant &component, String &propName) |
| Adds circuit component parameters as design variables. More... | |
| void | AddConditionProperty (Variant &condition, String &propName) |
| Add the parameters of the condition as design variables. More... | |
| void | AddEquation (String ¶meterName) |
| Adds a parametric equation. More... | |
| void | AddEquationParameter (String &equationName, String ¶meterName) |
| Assigns a variable to a parametric equation. More... | |
| void | AddMeasurementVariable (String ¶meterName) |
| Adds a measurement variable. More... | |
| void | AddParameter (String ¶meterName) |
| Adds parameters as design variables. More... | |
| void | AddParameterVariableName (String ¶meterName, String &variableName=String()) |
| Adds parameters for conditions and materials as design variables (Specified by variable name). More... | |
| void | AddParameterVariableNames (StringList ¶meterNames, StringList &variableNames=StringList()) |
| Adds parameters for multiple conditions and materials as design variables (Specified by variable name). More... | |
| Variant | AllParameterNames () |
| Returns a list of parameters added to a design parameter table. More... | |
| Variant | CaseGroupIndices (Variant &nameOrIndex) |
| Returns a list of the case indices in the case group. More... | |
| String | CaseGroupName (int index) |
| Returns the name of the case group with the specified index. More... | |
| void | Export (String &filename) |
| Exports a list of cases to a file (*.csv, *.txt, *.html). This command corresponds to the export function in the [Design Table] dialog. More... | |
| void | ExportEquation (String &filename, StringList ¶meterNameList) |
| Exports a parametric equation to a file (*.xml). This command corresponds to the export function in the [Equations] dialog. More... | |
| String | GetCaseLabelFormat () |
| Returns the case label format. More... | |
| String | GetDisplayName (Variant &indexOrName) |
| Returns the display name of a parameter. More... | |
| ParametricEquation * | GetEquation (Variant &indexOrName) |
| Returns a parametric equation object by specifying its name or index. More... | |
| String | GetLabel (int caseIndex) |
| Returns the label for the case ID. More... | |
| MeasurementVariable * | GetMeasurementVariable (Variant &val) |
| Returns measurement variable object by specifying name or index. More... | |
| int | GetParameterIndex (String ¶meterName) |
| Returns the index of a parameter by specifying its name. More... | |
| int | GetParameterOrder (Variant &indexOrName) |
| Returns the parameter display order. More... | |
| int | GetParameterWidth (Variant &indexOrName) |
| Returns the display width of a parameter. More... | |
| Variant | GetRelatedParameterNames (String &equationName) |
| Returns a list of parameter name added to a design parameter table by specifying name of parametric equation. More... | |
| DataSet * | GetTableValue (int caseIndex, int parameterIndex) |
| Returns the DataSet object from a case and parameter of the index. More... | |
| Variant | GetValue (int caseIndex, int parameterIndex) |
| Returns the value for the specified case and index of the parameter. More... | |
| String | GetVariableName (Variant &indexOrName) |
| Specifies a variable name for a parameter. More... | |
| bool | GetVisibleParameter (Variant &indexOrName) |
| Returns whether a parameter is displayed or hidden. More... | |
| bool | HasEquation (String &equationName) |
| Returns if the equation exists by specifying its name. More... | |
| void | Import (String &filename) |
| Imports a list of cases from a file (*.csv, *.txt). This command corresponds to the export function in the [Design Table] dialog. More... | |
| void | ImportEquation (String &filename) |
| Imports a parametric equation to a file (*.xml). This command corresponds to the import function in the [Equations] dialog. More... | |
| bool | IsActive (int caseIndex) |
| Returns status of specified case. More... | |
| bool | IsCadParameter (int index) |
| Returns whether or not the specified parameter corresponds to a dimension parameter. More... | |
| bool | IsInGroup () |
| Returns the status of whether an analysis group is being used. More... | |
| bool | IsMaterialItem (int index) |
| Returns whether or not the specified parameter corresponds to a material parameter. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumCaseGroups () |
| Returns the number of case groups. More... | |
| int | NumCases () |
| Returns the number of cases. More... | |
| int | NumMeasurementVariables () |
| Returns the number of measurement variables. More... | |
| int | NumParameters () |
| Returns the number of parameters. More... | |
| String | ParameterName (int index) |
| Returns the name of the parameter. More... | |
| String | ParameterTypeName (int index) |
| Returns the parameter type. More... | |
| void | RemoveCase (int caseIndex) |
| Removes a case. More... | |
| void | RemoveCaseGroup (Variant &nameOrIndex) |
| Removes a case group from the design table. More... | |
| void | RemoveCases (String array &caseIndexes) |
| Removes multiple cases. More... | |
| void | RemoveCasesFromGroup (Variant &nameOrIndex, String &indices) |
| Removes cases from an existing case group. More... | |
| void | RemoveEquation (Variant &indexOrName) |
| Removes a parametric equation. More... | |
| void | RemoveEquationParameter (String &equationName, String ¶meterName) |
| Removes a variable assigned to a parametric equation. More... | |
| void | RemoveMeasurementVariable (Variant &val) |
| Deletes the measurement variable by specifying name or index. More... | |
| void | RemoveParameter (Variant &indexOrName) |
| Removes a CAD parameter. More... | |
| void | RenameCaseGroup (Variant &nameOrIndex, String &newName) |
| Renames a case group. More... | |
| void | SetActive (int caseIndex, int active) |
| Switches the status of a case (switching settings for a check box in the [Design Table] dialog). More... | |
| void | SetCaseLabelFormat (String &label) |
| Specifies the format of a case label. More... | |
| void | SetDisplayName (String ¶meterName, String &displayName) |
| Specifies the display name for a parameter. More... | |
| void | SetLabel (int caseIndex, String &label) |
| Specifies the name of the case index. More... | |
| void | SetParameterOrder (Variant &indexOrName, int order) |
| Specifies the display order of a parameter. More... | |
| void | SetParameterWidth (Variant &indexOrName, int width) |
| Specifies the display width parameters. More... | |
| void | SetTableValue (int caseIndex, int parameterIndex, DataSet *data) |
| Specifies a DataSet object to a case and parameter of the index. More... | |
| void | SetValue (int caseIndex, int parameterIndex, Variant &value) |
| Specifies the case and parameter index and sets the value of that parameter. More... | |
| void | SetValues (int caseIndex, String array ¶meterIndices, String array &values) |
| Specifies the case and parameter index and sets the value of that parameter. More... | |
| void | SetVariableName (String ¶meterName, String &variableName) |
| Specifies a variable name for a parameter. More... | |
| void | SetVisibleParameter (Variant &indexOrName, bool isShown) |
| Displays/hides a parameter. More... | |
DesignTable class is used to a create design parameter table for a parametric analysis.
The class can be called from Study or AnalysisGroup class.
.
Example of obtaining the class object:
| void DesignTable::AddCadParameter | ( | String & | parameterName | ) |
Adds parameters of the CAD model as design variables.
| parameterName | Parameter name for a CAD model |
| void DesignTable::AddCadParameterVariableName | ( | String & | parameterName, |
| String & | variableName = String() |
||
| ) |
Adds parameters of the CAD model as design variables (Specified by variable name).
| parameterName | Parameter name of CAD model |
| variableName | Variable name |
| void DesignTable::AddCadParameterVariableNames | ( | StringList & | parameterNames, |
| StringList & | variableNames = StringList() |
||
| ) |
Adds parameters of multiple CAD models as design variables (Specified by variable name).
| parameterNames | List of CAD model parameter names |
| variableNamed | List of variable names |
| void DesignTable::AddCaseGroup | ( | String & | name, |
| String & | indices | ||
| ) |
Adds a new case group with the specified indices. If a group with the specified name already exists, the indices are added to the existing group.
| name | Name of the case group |
| indices | A string containing a comma separated list of case indices |
| void DesignTable::AddCases | ( | int | numCases | ) |
Adds parametric cases that are specified as arguments.
| numCases | Number of cases to be added |
| void DesignTable::AddCasesToGroup | ( | Variant & | nameOrIndex, |
| String & | indices | ||
| ) |
Adds cases to an existing case group.
| nameOrIndex | Name or index of the group |
| indices | A string containing a comma separated list of case indices |
| void DesignTable::AddCircuitComponentProperty | ( | Variant & | component, |
| String & | propName | ||
| ) |
Adds circuit component parameters as design variables.
| component | Circuit component title or index |
| propName | Parameter name of a circuit component |
For possible names specified in propName, see Properties and Flags for the Circuit Settings .
| void DesignTable::AddConditionProperty | ( | Variant & | condition, |
| String & | propName | ||
| ) |
Add the parameters of the condition as design variables.
| condition | Title or index of the condition |
| propName | Parameter name of condition |
For possible names specified in propName, see Properties and Flags for Condition Settings .
| void DesignTable::AddEquation | ( | String & | parameterName | ) |
Adds a parametric equation.
| parameterName | Name of the parametric equation |
| void DesignTable::AddEquationParameter | ( | String & | equationName, |
| String & | parameterName | ||
| ) |
Assigns a variable to a parametric equation.
| equationName | Name of the parametric equation |
| parameterName | Assigned parameter name |
| void DesignTable::AddMeasurementVariable | ( | String & | parameterName | ) |
Adds a measurement variable.
| measurement | Variable name |
| void DesignTable::AddParameter | ( | String & | parameterName | ) |
Adds parameters as design variables.
| parameterName | Parameter name |
| void DesignTable::AddParameterVariableName | ( | String & | parameterName, |
| String & | variableName = String() |
||
| ) |
Adds parameters for conditions and materials as design variables (Specified by variable name).
| parameterName | Parameter name |
| variableName | Variable name |
| void DesignTable::AddParameterVariableNames | ( | StringList & | parameterNames, |
| StringList & | variableNames = StringList() |
||
| ) |
Adds parameters for multiple conditions and materials as design variables (Specified by variable name).
| parameterNames | Parameter name list |
| variableNames | Variable name list |
| Variant DesignTable::AllParameterNames | ( | ) |
Returns a list of parameters added to a design parameter table.
| Variant DesignTable::CaseGroupIndices | ( | Variant & | nameOrIndex | ) |
Returns a list of the case indices in the case group.
| nameOrIndex | Name or index of the case group |
| String DesignTable::CaseGroupName | ( | int | index | ) |
Returns the name of the case group with the specified index.
| index | Index of case group |
| void DesignTable::Export | ( | String & | filename | ) |
Exports a list of cases to a file (*.csv, *.txt, *.html). This command corresponds to the export function in the [Design Table] dialog.
| filename | File path for exporting |
| void DesignTable::ExportEquation | ( | String & | filename, |
| StringList & | parameterNameList | ||
| ) |
Exports a parametric equation to a file (*.xml). This command corresponds to the export function in the [Equations] dialog.
| filename | Path of the file to export |
| parameterNameList | Name of the parametric equation to be exported |
| String DesignTable::GetCaseLabelFormat | ( | ) |
Returns the case label format.
| String DesignTable::GetDisplayName | ( | Variant & | indexOrName | ) |
Returns the display name of a parameter.
| parameterName | Name or index of the parameter |
| ParametricEquation * DesignTable::GetEquation | ( | Variant & | indexOrName | ) |
Returns a parametric equation object by specifying its name or index.
| indexOrName | Name or index of the parametric equation |
| String DesignTable::GetLabel | ( | int | caseIndex | ) |
Returns the label for the case ID.
| caseIndex | Case ID |
The caseIndex is numbered from 0.
| MeasurementVariable * DesignTable::GetMeasurementVariable | ( | Variant & | val | ) |
Returns measurement variable object by specifying name or index.
| val | measurement Name or index of the measurement variable |
| int DesignTable::GetParameterIndex | ( | String & | parameterName | ) |
Returns the index of a parameter by specifying its name.
| parameterName | Parameter name obtained by ParameterName() or variable name |
The following is an example of using this function. In this example, the index of variable lm is obtained.
| int DesignTable::GetParameterOrder | ( | Variant & | indexOrName | ) |
Returns the parameter display order.
| indexOrName | Name or index of the parameter |
| int DesignTable::GetParameterWidth | ( | Variant & | indexOrName | ) |
Returns the display width of a parameter.
| indexOrName | Name or index of the parameter |
| Variant DesignTable::GetRelatedParameterNames | ( | String & | equationName | ) |
Returns a list of parameter name added to a design parameter table by specifying name of parametric equation.
| equationName | Name of the parametric equation |
| DataSet * DesignTable::GetTableValue | ( | int | caseIndex, |
| int | parameterIndex | ||
| ) |
| Variant DesignTable::GetValue | ( | int | caseIndex, |
| int | parameterIndex | ||
| ) |
Returns the value for the specified case and index of the parameter.
| numCases | Case |
| parameterIndex | Parameter |
The caseIndex is numbered from zero.
| String DesignTable::GetVariableName | ( | Variant & | indexOrName | ) |
Specifies a variable name for a parameter.
| parameterName | Name or index of the parameter |
| bool DesignTable::GetVisibleParameter | ( | Variant & | indexOrName | ) |
Returns whether a parameter is displayed or hidden.
| indexOrName | Name or index of the parameter |
| bool DesignTable::HasEquation | ( | String & | equationName | ) |
Returns if the equation exists by specifying its name.
| equationName | Name of the parametric equation |
| void DesignTable::Import | ( | String & | filename | ) |
Imports a list of cases from a file (*.csv, *.txt). This command corresponds to the export function in the [Design Table] dialog.
| filename | File path for importing |
| void DesignTable::ImportEquation | ( | String & | filename | ) |
Imports a parametric equation to a file (*.xml). This command corresponds to the import function in the [Equations] dialog.
| filename | Path of the file to import |
| bool DesignTable::IsActive | ( | int | caseIndex | ) |
Returns status of specified case.
| caseIndex | Index of case |
The caseIndex is numbered from 0.
| bool DesignTable::IsCadParameter | ( | int | index | ) |
Returns whether or not the specified parameter corresponds to a dimension parameter.
| index | Parameter index |
The dimension parameters for this command are sorted in [CAD Parameters], under the treeview for the [Select Parametric Parameters] dialog.
| bool DesignTable::IsInGroup | ( | ) |
Returns the status of whether an analysis group is being used.
| bool DesignTable::IsMaterialItem | ( | int | index | ) |
Returns whether or not the specified parameter corresponds to a material parameter.
| index | Parameter index |
The material parameters for this command are sorted in [Materials], under the treeview for the [Select Parametric Parameters] dialog.
| bool DesignTable::IsValid | ( | ) |
Returns True if an object is valid.
| int DesignTable::NumCaseGroups | ( | ) |
Returns the number of case groups.
| int DesignTable::NumCases | ( | ) |
Returns the number of cases.
| int DesignTable::NumMeasurementVariables | ( | ) |
Returns the number of measurement variables.
| int DesignTable::NumParameters | ( | ) |
Returns the number of parameters.
| String DesignTable::ParameterName | ( | int | index | ) |
Returns the name of the parameter.
| index | Index of the parameter |
| String DesignTable::ParameterTypeName | ( | int | index | ) |
Returns the parameter type.
| index | Parameter index |
| void DesignTable::RemoveCase | ( | int | caseIndex | ) |
Removes a case.
| caseIndex | Index of the case |
The caseIndex is numbered from zero.
| void DesignTable::RemoveCaseGroup | ( | Variant & | nameOrIndex | ) |
Removes a case group from the design table.
| nameOrIndex | Name or index of the group |
| void DesignTable::RemoveCases | ( | String array & | indexes | ) |
Removes multiple cases.
| indexes | List of the case indexes |
The case index in the list is numbered from zero.
| void DesignTable::RemoveCasesFromGroup | ( | Variant & | nameOrIndex, |
| String & | indices | ||
| ) |
Removes cases from an existing case group.
| nameOrIndex | Name or index of the group |
| indices | A string containing a comma separated list of case indices |
| void DesignTable::RemoveEquation | ( | Variant & | indexOrName | ) |
Removes a parametric equation.
| indexOrName | Name or index of the parametric equation |
| void DesignTable::RemoveEquationParameter | ( | String & | equationName, |
| String & | parameterName | ||
| ) |
Removes a variable assigned to a parametric equation.
| equationName | Name of the parametric equation |
| parameterName | Parameter name |
| void DesignTable::RemoveMeasurementVariable | ( | Variant & | val | ) |
Deletes the measurement variable by specifying name or index.
| val | Name or index of the measurement variable |
| void DesignTable::RemoveParameter | ( | Variant & | indexOrName | ) |
Removes a CAD parameter.
| indexOrName | Name or index of the CAD parameter |
| void DesignTable::RenameCaseGroup | ( | Variant & | nameOrIndex, |
| String & | newName | ||
| ) |
Renames a case group.
| nameOrIndex | Name or index of the group |
| newName | New name for the group |
| void DesignTable::SetActive | ( | int | caseIndex, |
| int | active | ||
| ) |
Switches the status of a case (switching settings for a check box in the [Design Table] dialog).
| caseIndex | Name or index of the parametric equation |
| active | 0=off : Clears check box
1=on : Selects check box
|
The SetActive command selects or clears a check box in the [Design Table] dialog.
The [Design Table] can be selected from the menu that is displayed by right-clicking on a case control in the treeview, and then selecting [Show Cases].
Note the following when using SetActive.
The following are examples of using this command.
Enter the following command to clear the check box for case number 3
| void DesignTable::SetCaseLabelFormat | ( | String & | label | ) |
Specifies the format of a case label.
| label | Case label format |
| void DesignTable::SetDisplayName | ( | String & | parameterName, |
| String & | displayName | ||
| ) |
Specifies the display name for a parameter.
| parameterName | Parameter name |
| displayName | Display name |
| void DesignTable::SetLabel | ( | int | caseIndex, |
| String & | label | ||
| ) |
Specifies the name of the case index.
| caseIndex | Case index |
| label | Label name |
The caseIndex is numbered from 0.
| void DesignTable::SetParameterOrder | ( | Variant & | indexOrName, |
| int | order | ||
| ) |
Specifies the display order of a parameter.
| indexOrName | Name or index of the parameter |
| order | Display order |
| void DesignTable::SetParameterWidth | ( | Variant & | indexOrName, |
| int | width | ||
| ) |
Specifies the display width parameters.
| indexOrName | Name or index of the parameter |
| width | width |
| void DesignTable::SetTableValue | ( | int | caseIndex, |
| int | parameterIndex, | ||
| DataSet * | data | ||
| ) |
| void DesignTable::SetValue | ( | int | caseIndex, |
| int | parameterIndex, | ||
| Variant & | value | ||
| ) |
Specifies the case and parameter index and sets the value of that parameter.
| numCases | Case |
| parameterIndex | Parameter |
| value | Value |
The caseIndex is numbered starting from zero.
Specify the following values as 'value' when specifying magnetization patterns in a magnet using the 'SetValue' command of the DesignTable class.
| Value | Description |
|---|---|
| 1 | Parallel anisotropic |
| 2 | Radial anisotropic |
| 3 | Spherical anisotropic |
| 4 | Parallel pattern (circular direction) |
| 5 | Radial pattern (circular direction) |
| 6 | Polar anisotropic (circular direction) |
| 7 | Axis pattern (circular direction) |
| 8 | Parallel pattern (rectilinear) |
| 9 | Polar pattern (rectilinear) |
| 0 | Specifies magnetization direction for each element |
| 21 | Circumferential anisotropic |
| void DesignTable::SetValues | ( | int | caseIndex, |
| String array & | parameterIndices, | ||
| String array & | values | ||
| ) |
Specifies the case and parameter index and sets the value of that parameter.
| numCases | Case |
| parameterIndices | Parameter index list |
| values | Value list |
The caseIndex is numbered starting from zero.
Specify the following values as 'value' when specifying magnetization patterns in a magnet using the SetValues() command of the DesignTable class.
| Value | Description |
|---|---|
| 1 | Parallel anisotropic |
| 2 | Radial anisotropic |
| 3 | Spherical anisotropic |
| 4 | Parallel pattern (circular direction) |
| 5 | Radial pattern (circular direction) |
| 6 | Polar anisotropic (circular direction) |
| 7 | Axis pattern (circular direction) |
| 8 | Parallel pattern (rectilinear) |
| 9 | Polar pattern (rectilinear) |
| 0 | Specifies magnetization direction for each element |
| 21 | Circumferential anisotropic |
| void DesignTable::SetVariableName | ( | String & | parameterName, |
| String & | variableName | ||
| ) |
Specifies a variable name for a parameter.
| parameterName | Parameter name |
| variableName | Variable name |
| void DesignTable::SetVisibleParameter | ( | Variant & | indexOrName, |
| bool | isShown | ||
| ) |
Displays/hides a parameter.
| indexOrName | Name or index of the parameter |
| isShown | Displayed/hidden |