hm_getmidsurfaceinfo

Returns information related to geometric midsurfaces.

Syntax

hm_getmidsurfaceinfo query_type=<value> input_mark=<mark_id> ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Query Command

Description

Returns information related to geometric midsurfaces.

Inputs

query_type=<value>
The type of query to perform:
find_midsurface - Finds midsurfaces corresponding to input_entity_type comps, surfs or solids. The return is the list of output_entity_type IDs.
find_parent_geometry - Finds comps, surfs or solids corresponding to input_entity_type midsurfaces. The return is the list of output_entity_type IDs.
is_midsurface - Checks if a given input_entity_type of comps or surfs consists of midsurfaces only, non-midsurfaces only, or both. The return is yes, no or mixed.
input_mark=<value>
The ID of the mark of input entities. Valid values are 1 and 2.
input_entity_type=<value>
The type of input entity on input_mark. Valid values are given in query_type. If there is only one possible value, this can be omitted.
output_entity_type=<value>
The type of ouptut entity. Valid values are given in query_type. If there is only one possible value, this can be omitted.

Examples

To get the list of middle surfaces corresponding to solid with ID 19:
*createmark solids 1 19
hm_getmidsurfaceinfo query_type=find_midsurface input_mark=1 input_entity_type=solids
To get the component containing the original geometry for the middle surface with ID 19:
*createmark surfs 1 19
hm_getmidsurfaceinfo query_type=find_parent_geometry input_mark=1 input_entity_type=comps
To see if the surface with ID 19 is a midsurface:
*createmark surfs 1 19
hm_getmidsurfaceinfo query_type=is_midsurface input_mark=1

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

2021