*hf_trim_multi

Trims the selected elements with the selected lines, optionally maintaining selected nodes.

Syntax

*hf_trim_multi entity_type mark_id line_list vector_id node_list trim_flag reserved

Type

HyperMesh Tcl Modify Command

Description

This command trims the selected elements with the selected lines, optionally maintaining selected nodes.

Inputs

entity_type
The entity type to define the elements. Valid values are comps and elems.
mark_id
The mark ID containing the entities. Valid values are 1 and 2.
line_list
The line list ID to use for trimming. Valid values are 1 and 2.
vector_ID
The temporary vector ID created using the *createvector command that defines the trimming direction.
node_list
The list ID containing any nodes to maintain. Valid values are 1 and 2.
trim_flag
Flag that indicates the trim type. Valid values are:
  • -1 - Trim outside.
  • 1 - Trim inside.
reserved
Reserved for future use. Must be set to 0.

Example

To trim elements 1-100 along the z-axis using lines 10, 20 and 30:
*createmark elems 1 1-100
*createlist lines 1 10 20 30
*createlist nodes 1
*createvector 1 0.0 0.0 1.0
*hf_trim_multi elems 1 1 1 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

11.0