*nodecreateatlineparams

Create nodes or points at parametric locations on a line.

Syntax

*nodecreateatlineparams line_id double_array number_of_doubles insert_count mode point_flag

Type

HyperMesh Tcl Modify

Description

This command creates nodes or points at points on given line for given parametric values.

Inputs

line_id
Input line ID.
double_array
The ID of the double array that contains the parametric location values in the range 0 to 1. The double array is created using the *createdoublearray command. This should always be set to 1.
number_of_doubles
Integer indicating the size (number of doubles) in the double array created using *createdoublearray.
insert_count
Number of additional parametric values inserted between the values specified by the array in double_array.
mode
Specifies how parameters specified in double_array are used. Valid values are:
0 – Line arc length parameterization is used.
1 – Internal line parameterization is used.
point_flag
Parameter specifying whether nodes or points are created. Valid values are:
0 – Create nodes (default)
1 – Create points

Examples

To create nodes on line 12 at arc length parametric values 0.2, 0.8 and 0.85:

*createdoublearray 3 0.2 0.8 0.85
*nodecreateatlineparams 12 1 3

To create 10 points on line 12 using the line’s internal parameterization with parameters equally distributed between 0 and 1:

*createdoublearray 2 0 1
*nodecreateatlineparams 12 1 2 8 1 1

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