*linecreatefromnodesonsurface

Create a line on a surface from nodes or points on the surface.

Syntax

*linecreatefromnodesonsurface surf_type surf_id point_type point_list curve_type options

Type

HyperMesh Tcl Modify

Description

This command creates a line that lines on a surface by interpolating input points on that surface. If some of the input points do not reside on the same surface, then the location closest to those points on the surface point are used.

Inputs

surf_type
Input surface type. Valid values are surfs of faces.
surf_id
Input surface ID value.
point_type
Type of entities representing input points. Valid values are nodes or points.
point_list
List ID of the input points or nodes. A minimum of 2 points or nodes must be selected.
curve_type
Type of created curve. Valid values are:
0 – Points are connected by linear segments.
1 – Points are connected by linear segments into closed line.
2 – Points are interpolated by a smooth curve.
3 – Points are interpolated by a smooth closed curve.
options
Flags that indicate different modes. Bit values are used and the value is calculated as (Bit0 + 2*Bit1).
Bit0
Additional curve construction option. Valid values are:
  • 0 – Curve is created as free line.
  • 1 – Created curve is used to trim input surface.
Bit1
Specifies how entities are organized into components. Used only when Bit0 is set as 0. Valid values are:
  • 0 – Line is created in the current component.
  • 1 – Line is created in the surface component.

Example

To create a spline that interpolates nodes 11, 12 and 13 on surface 10:

*createlist nodes 1 11 12 13
*linecreatefromnodesonsurface surfs 10 nodes 1 1 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

10.0