HM_ExtAPI::CADDocumentGetLocalSystem()

Returns the transformation matrix between the global model coordinate system and the original local system of the model part represented by the model assembly hierarchy document.

Syntax

bool CADDocumentGetLocalSystem(
const HM_CAD_Document & doc,
HM_Transform & transform
);

Type

HyperMesh Ext API

Description

When imported into the HyperMesh database all parts of the original CAD model are automatically transformed to the global coordinate system of the model. The function CADDocumentGetLocalSystem can be used to obtain the information about the transformation between original local coordinate system of the part of sub-assembly corresponding to model assembly hierarchy document and the global model coordinate system.

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.

The structure transform contains information about basis vectors and the origin of the original local system of the part with respect to the global model coordinate system (see HM_Transform for more details).

Requires including hm_extapi.h.

Inputs

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

Errors

None.