hm_getincludeentities

Selects entities and returns the entity types contained in a specified include file.

Syntax

hm_getincludeentities include_id mark_id

Type

HyperMesh Tcl Query

Description

Selects entities and returns the entity types contained in a specified include file. The return value is the list of entity types found in the specified include. The actual entities are populated on the specified mark.

Inputs

include_id
The ID of the include file to query. A value of 0 indicates the master model.
mark_id
The ID of the mark that contains the found entities. Valid values are 1 and 2.

Example

To find all of the entities in include 1 and delete them:

hm_markclearall 1
set ent_types [hm_getincludeentities 1 1]
foreach ent_type $ent_types {
    catch {*deletemark $ent_type 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

14.0