hm_getvolumeofsolid

Finds the volume of a solid entity specified by the solid entity’s ID.

Syntax

hm_getvolumeofsolid solids solidID

Type

HyperMesh Tcl Query Command

Description

This command finds the volume of the solid solid_id. The solid argument is actually the entity type, but because this command is specifically for solid volumes, "solids" is the only valid entity type.

Example

To find the volume of solid 3:

hm_getvolumeofsolid solids 3

Errors

Incorrect usage of hm_getvolumeofsolid results in a Tcl error. The function returns an error if the current model does not contain a solid with the given solid_id.

If { [ catch {hm_getvolumeofsolid solids $solid_id } ] } { 
# Handle error here - $solid_id is not a valid solid ID. 
}