*morphconstraintupdateline
Updates a line type morphconstraint for the selected nodes with the option of having those nodes either move along the line or be bounded by it.
Syntax
*morphconstraintupdateline ntype nmark type mcon vec line dist ivec color
Type
HyperMesh Tcl Modify
Description
This command updates a line type morphconstraint for the selected nodes with the option of having those nodes either move along the line or be bounded by it.
Inputs
- ntype
- Must be set to nodes.
- nmark
- The ID of the mark for the constrained nodes. Valid values are 1 and 2.
- type
- 0 - moves along the line
- mcon
- The ID of the morph constraint to update.
- vec
- The ID of the vector created using *createvector. Must be set to 1.
- line
- The ID of the line.
- dist
- The minimum distance from the bounding line.
- ivec
- 0 - The line normal is used for distance and projection. The nodes will be moved normally to the line when constraining them or measuring the distance the nodes are away from the line.
- color
- The color of the constraint. Valid values are 1-64.
Example
To update a morphconstraint for nodes to move along a line and projected normally to the line:
*createmark nodes 1 1 2 3 4 5
*createvector 1 1.0 0.0 0.0
*morphconstraintupdateline nodes 1 0 12 1 12 0.0 0 32
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}