HM_ExtAPI::CADDocumentGetMaterial()

Returns the material name of a part.

Syntax

const char* CADDocumentGetMaterial(
const HM_CAD_Document & doc
);

Type

HyperMesh Ext API Function

Description

The string that is returned from the functionHM_ExtAPI::CADDocumentGetMaterial() should be copied for further use.

Returns the material name of a part. It is available by enabling the @AttributesAsMetadata option in ct_reader.ini, with value set as "part". This function operates under the assumption that the CAD user has previously stored the material name of the part into a user attribute of the part. The attribute has a conventional name ("Material"). The conventional name of the user attribute can be customized with the @MaterialName option. This function applies to CATIA and Creo parts.

Requires including hm_extapi.h.

Inputs

doc
[in] - Handle to document object that was returned by previous calls to API functions.

Errors

None.