HM_ExtAPI::GetNextComponent()

Returns the next component of the model currently loaded in HyperMesh database model.

Syntax

bool GetNextComponent(
HM_EntityComponent & comp
);

Type

HyperMesh Ext API

Description

The function GetNextComponent is used together with the function HM_ExtAPI::GetFirstComponent() to iterate through all components of the model loaded into HyperMesh database. The call to GetFirstComponent resets internal component counter to the first component. The following calls to GetNextComponent increment the counter until components are iterated.

If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

comp
[out] - Handle to the next component. The value of the handle is zero in case if no model is loaded, or if all components were already returned by previous calls to GetNextComponent function.

Errors

None.