hm_attributereferencecount
Returns the number of times an entity is referenced as an entity attribute.
Syntax
hm_attributereferencecount entity_type entity_id
Type
HyperMesh Tcl Query Command
Description
Returns the number of times an entity is referenced as an entity attribute.
Inputs
- entity_type
- The type of entity to query.
- entity_id
- The ID of the entity.
Example
To get the number of times material 6 is referenced as an entity attribute:
hm_attributereferencecount material 6
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}