Share

AcAxRotate3D

C++

HRESULT AXAUTOEXP AcAxRotate3D(
    const AcDbObjectId& objId, 
    VARIANT point1, 
    VARIANT point2, 
    double rotationAngle
);

File

axboiler.h

Description

Rotates the specified object in 3D using the given angle and points.

Returns HRESULT. The macros SUCCEEDED() and FAILED() can be used to determine whether the function succeeded. The return value should be forwarded to the COM client; nothing else needs to be done. The function cleans up after itself in case of an error and also sets up the Error Info object that can be queried from the COM client to get specific information about what caused any given failure.

Parameters

Parameters Description
objId Input object ID of object to rotate
point1 VARIANT containing a SAFEARRAY of doubles (VT_R8)
point2 VARIANT containing a SAFEARRAY of doubles (VT_R8)
rotationAngle Input angle in radians

Was this information helpful?