*freesizedesvarcreatewithstackoption
Creates a free size design variable.
Syntax
*freesizedesvarcreatewithstackoption mark_id name minthick maxthick ptype stack_ids numstacks
Type
HyperMesh Tcl Modify
Description
This command creates a free size design variable that corresponds to a DSIZE card. The design variable can be created using STACK IDs or properties of type PSHELL, PCOMP, or PCOMPG.
Inputs
- mark_id
- If properties are used in creation of the design variable, this represents the mark ID containing the properties. Valid values are 1 and 2.
- name
- Name of the design variable.
- minthick
- When ptype is PSHELL, this refers to the minimum thickness of the shell. Otherwise, set to 0.0.
- maxthick
- When ptype is PSHELL, this refers to the maximum thickness of the shell. Otherwise, set to 0.0.
- ptype
- The property type. Valid values are:
- 1 – PSHELL
- 3 – PCOMP or PCOMPG
- 4 - STACK
- stack_ids
- An array ID containing stack IDs.
- numstacks
- The number of stacks.
Examples
To create a free size design variable fs1 using stack IDs 15 and
16:
*createarray 4 15 16
*freesizedesvarcreatewithstackoption 0 fs1 0.0 0.0 4 1 2
To create a free size design variable fs2 using properties pcomp1 and
pcomp2:
*createmark properties 1 "pcomp1" "pcomp2"
*freesizedesvarcreatewithstackoption 1 fs2 0.0 0.0 3 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
10.0