*optiresponsesetequationdata4

Sets optiresponses ID list and vector-based option list for dresp1v and dresp2v type responses.

Syntax

*optiresponsesetequationdata4 name dresp1vmax dresp2vmax dresp1lvmax dresp2lvmax integer_array number_of_integers string_array number_of_strings

Type

HyperMesh Tcl Modify

Description

Sets optiresponses ID list and vector-based option list for dresp1v and dresp2v type responses. Sets optiresponses ID list, load collector ID list and vector-based option list for dresp1lv and dresp2lv type responses.

Inputs

name
The name of the response to update.
dresp1vmax
The number of identifiers in the list of dresp1v responses.
dresp2vmax
The number of identifiers in the list of dresp2v responses.
dresp1lvmax
The number of identifiers in the list of dresp1lv responses.
dresp2lvmax
The number of identifiers in the list of dresp2lv responses.
integer_array
The ID of the integer array that contains the additional opti response integer parameters. The integer array is created using the *createarray command. This should always be set to 1.
number_of_integers
Integer indicating the size (number of integers) in the integer array created using *createarray. This must be given as (dresp1vmax * 1) + (dresp2vmax * 1) + (dresp1lvmax * 2) + (dresp2lvmax * 2).
The array consists of:
  • The first dresp1vmax entries are the optiresponse IDs for dresp1v.
  • The next dresp2vmax entries are the optiresponse IDs for dresp2v.
  • The next dresp1lvmax entries are the optiresponse IDs for dresp1lv.
  • The next dresp1lvmax entries are the load collector IDs for dresp1lv.
  • The next dresp2lvmax entries are the optiresponse IDs for dresp2lv.
  • The final dresp2lvmax entries are the load collector IDs for dresp2lv.
string_array
The ID of the string array that contains the additional opti response string parameters. The string array is created using the *createstringarray command. This should always be set to 1.
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray. This must be given as (dresp1vmax * 1) + (dresp2vmax * 1) + (dresp1lvmax * 1) + (dresp2lvmax * 1).
The array consists of:
  • The first dresp1vmax entries are the vector-based option lists for dresp1v.
  • The next dresp2vmax entries are the vector-based option lists for dresp2v.
  • The next dresp1lvmax entries are the vector-based option lists for dresp1lv.
  • The final dresp2lvmax entries are the vector-based option lists for dresp2lv.

Example

*createarray 12 172 191 297 160 1 2 10 12 3 4 15 16
*createstringarray 8 "ATTI" "FREQ" "ATTI" "ALL" "ALL" "FREQ" "ATTI" "ALL"
*optiresponsesetequationdata4 "rfunc" 2 2 2 2 1 12 1 8

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.120