a529652412 发表于 2020-7-7 13:54:32

NX二次开发能否实现过切检查?

我测试了UF_OPER_is_path_gouged函数,发现这个列出过切,没法实现过切检查。
NXopen我试了一下workPart->CAMSetup()->CreateGougeCheckBuilder();
和workPart->CAMSetup()->GougeCheck();
貌似都不行,有没有大神做过这方面的开发的,求助!:'(

代码:
                NXOpen::CAM::CAMObject *CAMObject(dynamic_cast<NXOpen::CAM::CAMObject*>(NXOpen::NXObjectManager::Get(nc_oper)));
                std::vector<NXOpen::CAM::CAMObject *> objects1(1);
                objects1 = CAMObject;
                NXOpen::CAM::GougeCheckBuilder*gougeCheckBuilder1;
                gougeCheckBuilder1 = workPart->CAMSetup()->CreateGougeCheckBuilder(objects1);
                workPart->CAMSetup()->GougeCheck(objects1,0,0,0,0.00);
          gougeCheckBuilder1->ShowResults();
页: [1]
查看完整版本: NX二次开发能否实现过切检查?