*updateincludedata2

Updates include file solver specific information.

Syntax

*updateincludedata2 id shortname do_not_export_flag do_not_export solver1_flag solver1 solver2_flag solver2 merge_flag merge

Type

HyperMesh Tcl Modify Command

Description

Updates include file solver specific information.

The two solver values are for the convenience of template authors. They function in a manner analogous to "config" and "type" for elements, in that they can be used to screen out categories of include files from inappropriate sections in the template.

As an example, in Nastran, there are three sections in the output file, call them A, B, and C. Some include files need to appear in the A section, others in the B section, and the rest in the C section. In this case, solver1 is used to segregate them, with A files having the value 1, B files having the value 2, and C files having the value 3.

Inputs

id
The ID of the include file to update. If 0, shortname is used instead.
shortname
The short name to use to select the file if ID is 0. Ignored otherwise.
do_not_export_flag
0 - Do not update the export state
1 - Update the export state
do_not_export
0 - Set the include to export
1 - Set the include to not export
solver1_flag
0 - Do not update solver value 1
1 - Update solver value 1
solver1
The new value of solver value 1.
solver2_flag
0 - Do not update solver value 2
1 - Update solver value 2
solver2
The new value of solver value 2.
merge_flag
0 - Do not update the merge value
1 - Update the merge value
merge
0 - Do not merge include file with master file
1 - Merge include file with master file.
This option is valid, if you have selected the ‘Preserve Merge’ export option.

Example

To change the include file with ID 1 to not export, and update solver1 to a value of 3:

*updateincludedata2 1 "" 1 0 1 3 0 0 0 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

14.0