UG\NX secondary development to obtain the point and direction of the datum plane UF_MODL_ask_datum_plane

Author of the article: Caspian
Source website: Ace Pilot_Caspian_Caspian NX secondary development 3000 examples, Caspian BlockUI column, C\C++-CSDN blog


Introduction:

        UG\NX secondary development to obtain the point and direction of the datum plane UF_MODL_ask_datum_plane

Effect:

Code:

#include "me.hpp"


void ufusr(char* param, int* retcode, int paramLen)
{
    UF_initialize();

    //选择基准平面
    tag_t datum = selectDatum();

    //获取基准平面的点和方向
    double point[3] = { 0 };
    double dir[3] = { 0 };
    UF_MODL_ask_datum_plane(datum, point, dir);

    //使用点和方向创建临时箭头
    DisplayConehead(point, dir);

    UF_termi

Guess you like

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