*linecreatenormalfromgeom

Create straight segment lines from a node or point normal to the respective geometry.

Syntax

*linecreatenormalfromgeom point_type point_mark_id geom_type geom_mark_id length ?mode?

Type

HyperMesh Tcl Modify

Description

This command creates straight segment lines of a user defined length from a given set of points or nodes normally to a given set of geometry entities. The segment is created for each pair of point and geometry. The input nodes/points must be attached or associated with their respective geometry.

Inputs

point_type
Type of entities representing input points. Valid values are nodes or points.
point_mark_id
The mark of input points or nodes.
geom_type
Type of geometry entities. Valid values are lines, surfs, faces or solids.
geom_mark_id
The mark of input geometry entities.
length
The length of the normal line.
?mode?(optional)
Indicates different modes. Bit values are used and the value is calculated as (Bit0 + 2*Bit1).
Bit0
0 – the normal direction is used, which is the default case
1 – The direction opposite to the normal direction is used to create the segment
Bit1
Specifies how entities are organized into components. Valid values are:
  • 0 – Line is created in the current component, which is the default valule.
  • 1 – Line is created in the input geometry component.

Example

To create a straight segment normally from node ID 10 to surface ID 21, with length 18:

*createmark nodes 1 10
*createmark surfs 1 21
*linecreatenormalfromgeom  nodes 1 surfs 1 18

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