HM_ExtAPI::ElementGetComponent()
Returns a handle to the component for an element.
Syntax
bool ElementGetComponent(
const HM_EntityMesh& hmesh,
const HM_EntityElement& helem,
HM_EntityMeshComponent& hcomp
);
Type
HyperMesh Ext API
Description
Returns a handle to the component for an element.
If the function succeeds, the return value is true. To get extended value information, call HM_ExtAPI::GetLastErrorCode().
Requires including hm_extapi.h.
Inputs
- hmesh
- [in] - Handle to mesh object that was returned by previous calls to API funcitons.
- helem
- [in] - Handle to element object that was returned by previous calls to API functions for the mesh object referenced by hmesh.
- hcomp
- [out] - Handle to the mesh component object that contains the element referenced by helem. The value of the handle is zero in case the topology does not support components.
Errors
None.
Version History
11.0.101