*create_thin_solid_midline

Constructs midline of a section cut through selected solids.

Syntax

*create_thin_solid_midline solid_mark=<mark_id> ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Constructs midline of a section cut through selected solids. The section cut plane can be defined using one of the following methods: by three nodes/points/sets of coordinates, by four nodes/points/sets of coordinates defining the corners of a finite rectangle or by two sets of coordinates defining the base point and the normal vector of an infinite plane.

Inputs

solid_mark=<mark_id>
The ID of the mark containing the solids. Valid values are 1 and 2. Non-thin solids will be ignored.
node_mark=<mark_id>
The ID of the mark containing the nodes defining the cutting plane. The mark should contain 3 or 4 nodes. Valid values are 1 and 2.
point_mark=<mark_id>
The ID of the mark containing the points defining the cutting plane. The mark should contain 3 or 4 points. Valid values are 1 and 2.
plane_by_point_coords={<value>}
The value should be a list of coordinates that determine the infinite or finite cutting plane. The array should contain 9 real numbers (3 sets of xyz coordinates) or 12 numbers (4 sets of xyz coordinates).
plane_base={<value>}
The list containing coordinates of the base point defining the infinite cutting plane.
plane_normal=<value>
The list containing coordinates of the normal vector defining the infinite cutting plane.
dest_comp=<value>
This option 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 midlines in components with names midline.1, midline.2, and so on corresponding to the components containing the original solids.
original – Creates 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
within_comp_only – Do not equivalence between components.
to_connected_surfs - Equivalence between selected surfaces and surfaces connected to selection.
within_selection – Equivalence only within the subset of selected surfaces

Examples

To create midline of a section cut for solid 131 determined by infinite plane passing through nodes 10, 11, 12:
*createmark solids 1 131
*createmark nodes 1 10 11 12
*create_thin_solid_midline solid_mark=1 node_mark=1
To create midline of a section cut for solid 131 determined by finite rectangle with corners defined by nodes 10, 11, 12, 13:
*createmark solids 1 131
*createmark nodes 1 10 11 12 13
*create_thin_solid_midline solid_mark=1 node_mark=1
To create midline of a section cut for solid 131 determined by infinite plane passing through points 10, 11, 12:
*createmark solids 1 131
*createmark points 1 10 11 12
*create_thin_solid_midline solid_mark=1 point_mark=1 
To create midline of a section cut for solid 131 determined by infinite plane with a base point with coordinates (1.2, 3.4, 5.6) and a normal with coordinates (7.0, 8.0, 9.0):
*createmark solids 1 131
*create_thin_solid_midline solid_mark=1 plane_base={1.2 3.4 5.6} plane_normal={7.0 8.0 9.0}
To create midline of a section cut for solid 131 determined by infinite plane passing through 3 points with coordinates (1.0, 2.0, 3.0), (4.0, 5.0, 6.0) and (7.0, 8.0, 9.0):
*createmark solids 1 131
*create_thin_solid_midline solid_mark=1 plane_by_point_coords={1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0} 
To create midline of a section cut for solid 131 determined by finite rectangle with coordinates (0.0, 0.0, 3.0), (0.0, 1.0, 3.0), (1.0, 0.0, 3.0) and (1.0, 1.0, 3.0):
*createmark solids 1 131
*create_thin_solid_midline solid_mark=1 plane_by_point_coords={0.0 0.0 3.0 0.0 1.0 3.0 1.0 0.0 3.0 1.0 1.0 3.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

2022