*freeshapedrawextrusionpdate
Updates the draw and extrusion constraints of a free shape design variable.
Syntax
*freeshapedrawextrusionpdate name drawtype anchornode firstgrid coords numcoords extrusion_flag syst_id xe ye ze transform_flag
Type
HyperMesh Tcl Modify
Description
This command updates the draw and extrusion constraints of a free shape design variable.
Inputs
- name
- Name of the design variable to update.
- drawtype
- Pattern grouping type:
- 0 – none
- 1 – single
- anchornode
- Draw direction anchor node ID. Set to 0 when using coordinates to define the anchor node.
- firstgrid
- The grid ID that determines the draw direction. Set to 0 when using coordinates to define the first grid.
- coords
- The double array ID that contains the coordinates that define the anchor node and the first grid. The double array is created using the *createdoublearray command. This should always be set to 1.
- numcoords
- Integer indicating the size (number of doubles) in the double array created using *createdoublearray. This should always be set to 6.
- extrusion_flag
- Flag to indicate if extrusion constraints are applied:
- 0 – no extrusion
- 1 – use extrusion
- syst_id
- The coordinate system ID in which the xe, ye, and ze components are resolved.
- xe, ye, ze
- Extrusion components in the x-, y- and z-directions.
- transform_flag
- Indicates which system supplies the extrusion component values.
- 0 – component values are supplied in the global coordinate system.
- 1 – component values are supplied in the local coordinate system.
Examples
To update free shape design variable fsh1 to draw type single using nodes 10 and 15 with no
extrusion:
*freeshapedrawextrusionpdate "fsh1" 1 10 15 1 6 0 0 0 0 0 0
To update free shape design variable fsh2 with extrusion constraints specified by the
components (100, 150, and 200) in the global coordinate system and without
draw:
*freeshapedrawextrusionpdate "fsh2" 0 0 0 1 6 1 0 100 150 200 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
9.0