*freesizedesvarupdatewithstackoption
Updates a free size design variable.
Syntax
*freesizedesvarupdatewithstackoption mark_id name minthick maxthick ptype stack_ids numstacks
Type
HyperMesh Tcl Modify
Description
This command updates a free size design variable that corresponds to a DSIZE card. The design variable can be updated using STACK IDs or properties of type PSHELL, PCOMP, or PCOMPG.
Inputs
- mark_id
- If properties are used in updating of the design variable, this represents the ID of the mark 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 type of property. Valid values are:
- 1 – PSHELL
- 3 – PCOMP or PCOMPG
- 4 - STACK
- stack_ids
- ID of an array containing stack IDs.
- numstacks
- The number of stacks.
Example
To update a free size design variable fs1 using stack IDs 15 and
16:
*createarray 4 15 16
*freesizedesvarupdatewithstackoption 0 fs1 0.0 0.0 4 1 2
To update a free size design variable fs2 using properties pcomp1 and
pcomp2:
*createmark properties 1 "pcomp1" "pcomp2"
*freesizedesvarupdatewithstackoption 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
}