*create_tube_midline

Creates midlines from tube solids.

Syntax

*create_tube_midline mark=<mark_id> ?option1=<value1>? ?option2=<value2>? … ?optionN=<valueN>?

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
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., and so on.
dest_part=<value>
This specifies which part the midlines will be created in:
current - Creates all midlines in the current part.
original - Creates the midline for each solid in the same part as the solid itself.
new - Creates the midline in the new part hierarchy.
dest_comp_prefix=<value>
Prepends the created midline components with string value. (Default value=Midline_)
tube_ends_mark=<mark_id>
The ID of the mark containing hint surfaces that constitute ends of the tube. Valid values are 1 and 2.

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

2020.1 - Added new optional argument tube_ends_mark.

2024 - Added new optional arguments dest_part and dest_comp_prefix. Removed dest_comp values Midmesh and Midmesh.#.