HM_ExtAPI::CADDocumentGetPartNumber()

Returns the part number of a part.

Syntax

const char* CADDocumentGetPartNumber(
const HM_CAD_Document & doc
);

Type

HyperMesh Ext API Function

Description

The string that is returned from the function HM_ExtAPI::CADDocumentGetPartNumber() should be copied for further use.

Returns the part number of a part. It is available by enabling the @AttributesAsMetadata option in ct_reader.ini, with value set as "part". The attribute has a conventional name ("PartNumber"). The conventional name of the user attribute can be customized with the @PartNumber option. This function applies to CATIA and ProE parts.

Requires including hm_extapi.h.

Inputs

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

Errors

None.