*compositesizedesvarcreate

Creates a composite size design variable.

Syntax

*compositesizedesvarcreate name type_flag integer_array number_of_integers mark_id

Type

HyperMesh Tcl Modify

Description

This command creates a composite size design variable that corresponds to a DCOMP card. The design variable can be created using STACK IDs or properties of type PCOMP/PCOMPG.

Inputs

name
The name of the design variable to create.
type_flag
A flag indicating the type of design variable to create. Valid values are:
  • 1 – stack
  • 2 – property (PCOMP/PCOMPG)
integer_array
The ID of the integer array that contains the stack IDs. 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 stacks) in the integer array created using *createarray.
mark_id
If type_flag is set to 2, this is the ID of the mark containing those properties.
If type_flag is set to 1, valid values are 1 and 2, or 0.

Examples

To create a composite size design variable dc1 using stack IDs 15, 16, 17 and 18:
*createarray 4 15 16 17 18
*compositesizedesvarcreate "dc1" 1 1 4 0
To create a composite size design variable dc2 using properties pcomp1 and pcomp2:
*createmark properties 1 "pcomp1" "pcomp2"
*compositesizedesvarcreate "dc2" 2 1 0 1

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

10.0