UG\NX二次开发 投影距离 NXOpen::MeasureDistance

文章作者:里海
来源网站:https://blog.csdn.net/WangPaiFeiXingYuan


简介:

直接录制测量命令获取投影距离,是不能获取值的,下面这段代码可以获取投影距离测量值,请参考。

效果:

      

代码:

#include "me.hpp" 
#include <NXOpen/Session.hxx>
#include <NXOpen/Body.hxx>
#include <NXOpen/BodyCollection.hxx>
#include <NXOpen/Builder.hxx>
#include <NXOpen/DatumAxis.hxx>
#include <NXOpen/DatumCollection.hxx>
#include <NXOpen/Direction.hxx>
#include <NXOpen/DirectionCollection.hxx>
#include <NXOpen/DisplayableObject.

猜你喜欢

转载自blog.csdn.net/WangPaiFeiXingYuan/article/details/131226845