UG/NX secondary development rotation view UF_VIEW_rotate_view

Author of the article: Caspian
Source Website: https://blog.csdn.net/WangPaiFeiXingYuan


Introduction:

Rotate view UF_VIEW_rotate_view

Effect:

      

 

code:

#include "me.hpp"

extern DllExport void ufusr(char* param, int* returnCode, int rlen)
{
    UF_initialize();

    double douAxis[3] = { 0.0,1.0,0.0 };
    double douSumAngle = 360; //旋转总角度
    int iCount = 100; // 旋转次数
    double douAngle = douSumAngle / iCount; //每次旋转的角度
    UF_VIEW_rotate_view(NULL_TAG, douAxis, douAngle, iCount);
    UF_terminate();
}

extern int ufusr_ask_unload(void)
{
    return (UF_UNLOAD_IMMEDIATELY);
}

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/130151291