*contactsurfcreatewithshells

Creates a contact surface using 1D or 2D elements.

Syntax

*contactsurfcreatewithshells name color mark_id reverse_normals

Type

HyperMesh Tcl Modify

Description

Creates a contact surface using 1D or 2D elements.

Inputs

name
The name of the contact surface to create.
color
The color of the contact surface. Valid values are 1 through 64.
mark_id
The ID of the mark that contains the 1D and 2D elements to use. Valid values are 1 and 2.
reverse_normals
0 - Create contact surface along element normal.
1 - Create contact surface opposite element normal.

Examples

To create a contact surface named "test" with elements 1-100:
*createmark elems 1 1-100
*contactsurfcreatewithshells "test" 5 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
}