HM_ExtAPI::CADDocumentGetThickness()
Returns the thickness of a part.
Syntax
const char* CADDocumentGetThickness(
const HM_CAD_Document & doc
);
Type
HyperMesh Ext API Function
Description
The string that is returned from the function HM_ExtAPI::CADDocumentGetThickness() should be copied for further use.
Returns the thickness 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 thickness of the part into a user attribute of the part. The attribute has a conventional name ("Thickness"). The conventional name of the user attribute can be customized with the @ThicknessName 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.