*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:
- dest_comp=<value>
- This specifies which component the midlines will be created in:
- dest_part=<value>
- This specifies which part the midlines will be created in:
- 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.#.