*create_tube_midline

Creates midlines from tube solids.

Syntax

*create_tube_midline mark=<mark_id> ?dest_comp=<value>? ?copy_metadata=<value>?

Type

HyperMesh Tcl Modify Command

Description

Creates midlines from tube solids.

The options can be specified in any order.

Inputs

mark=<mark_id>
The ID of the mark containing the input solids. Valid values are 1 and 2. This is mandatory.
copy_metadata=<value>
This specifies whether the metadata is copied from the input solids to the appropriate midline:
0 – Do not copy
1 – Copy (default)
dest_comp=<value>
This specifies which component the midlines will be created in:
current – Creates all midlines in the current component
midline – Creates all midlines in a component with the name “midline” (default)
midline.# – Creates the midlines in components with names midline.1, midline.2, etc...corresponding to the components containing the original solids.
original – Creates the midline for each solid in the same component as the solid itself. If the solid lies in several components, the midline will be created in one of these.
original.# – Creates the midline for each solid in the component with the original component name suffixed with 1., 2., etc...

Examples

To extract the midlines from solids 234 and 235 and place the result in the same components as the original solids:

*createmark solids 1 234 235
*create_tube_midline mark=1 dest_comp=original

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

2020