hm_count

Counts the entities in the database.

Syntax

hm_count entity_type selection_flag config_num type_num

Type

HyperMesh Tcl Query

Description

Counts the entities in the database.

Inputs

entity_type
The type of entity to be counted. This parameter may be set to any of the entities in the database.
selection_flag all or displayed.
Indicates which entities are to be counted.
config_num
The configuration number of the entities to be counted. This parameter is used only if <entity type> is set to elements or loads. If set to zero, the entities are counted regardless of their configuration.
type_num
The type number of the entities to be counted. This parameter is used only if <entity type> is set to elements. If set to zero, all of the entities are counted regardless of their type.

Example

In the template function @count(), if the displayed option is selected (active) on the export data panel, the value returned by @count() includes only those entities that are currently displayed. In the Tcl/Tk function hm_count(), this has to be indicated explicitly using the argument selection_flag.

Errors

None.