*linecreatefromnodes
Create a line which passed through a list of nodes.
Syntax
*linecreatefromnodes list_id type break_angle aspect linear_angle
Type
HyperMesh Tcl Modify
Description
This command creates a line which passes through a list of nodes.
Inputs
- list_id
- The ID of the list containing the nodes. Valid values are 1 and 2.
- type
- The type of line to generate. Valid values are:
- 0 - linear
- 1 - standard
- 2 - smooth
- 3 - user controlled
- break_angle
- Specifies the minimum angle allowed between three points in a line. If the angle between a point and the two adjacent points is less than the angle specified, HyperMesh considers this point to be a point of discontinuity in the line and places a joint (starts a new NURBS) at this location.
- aspect
- Specifies the maximum ratio allowed for the distance between a point and the previous point in the line and the distance between the same point and the next point in the line. If the ratio of the distance between the two adjacent segments exceeds the aspect ratio defined, HyperMesh places a joint between the segments.
- linear_angle
- Defines the angle at which HyperMesh should consider a line straight. For example, if the line angle between three consecutive points along the line is greater than the linear angle specified, HyperMesh removes the center point from the line.
Example
To create a smooth line that passes through nodes 1-4:
*createlist nodes 1 1 2 3 4
*linecreatefromnodes 1 2 0.0 0.0 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
}