NX二次开发-UFUN创建扫掠UF_MODL_create_sweep
这个函数挺复杂的,我也是参考别人去做的。但是我还是没有做出来多段引导线的。
我们在做钻头螺旋槽的时候,一般都是拿一个封闭截面,三条引导线去做扫掠。
后来我是录制NXOPEN去做的
参考资料 https://www.ugapi.com/thread-10038.html
NX9+VS2012
#include <uf_object_types.h>
#include <NXOpen/ListingWindow.hxx>
#include <NXOpen/NXMessageBox.hxx>
#include <NXOpen/UI.hxx>
#include <NXOpen/Annotations.hxx>
#include <NXOpen/Assemblies_Component.hxx>
#include <NXOpen/Assemblies_ComponentAssembly.hxx>
#include <NXOpen/Body.hxx>
#include <NXOpen/BodyCollection.hxx>
#include <NXOpen/Face.hxx>
#include <NXOpen/Line.hxx>
#include <NXOpen/NXException.hxx>
#