*midmesh_extract
Extracts the midmesh of an input geometry.
Syntax
*midmesh_extract entity_type mark_id string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
longDescription
Inputs
- entity_type
- The type of input geometry. Valid values are solids, surfs, comps and elems.
- mark_id
- The ID of the mark of input entities. Valid values are 1 and 2.
- string_array
- The ID of the string array that contains the additional optional input parameters. The
string array is created using the *createstringarray command. This
should always be set to 1.Note: All parameters are case insensitive, and order insensitive. All parameters are optional, if not supplied, the mentioned defaults will be used.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
Examples
To extract the midmesh of all solids present in the model with element size as 2.0 with
SuppressProximityEdgesFactor and
CombineNonManifoldEdgesFactor as
0.5:
*createmark solids 1 all
*createstringarray 3 {ElementSize: 2.0} {SuppressProximityEdgesFactor: 0.5} {CombineNonManifoldEdgesFactor: 0.5}
*midmesh_extract solids 1 1 3
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
2019
2020.1 - Added new options DefeatureRibsWidth, DefeatureRibsWidthFactor and StepOffsetMode. Deprecated FlattenConnections=2.
2022.2 - Added new options MidlineTrimFilletsFactor and SuppressProximityFilletsFactor.
2024 - Added new options DestinationPart and DestinationComponentPrefix. Removed DestinationComponent values Midmesh and Midmesh.#.