// 换刀
void changeTool(CAM::Operation* operation, CAM::Tool* tool)
{
Session* theSession = Session::GetSession();
Part* workPart(theSession->Parts()->Work());
Part* displayPart(theSession->Parts()->Display());
std::vector<CAM::CAMObject*> objectsToBeMoved1(1);
objectsToBeMoved1[0] = operation;
workPart->CAMSetup()->MoveObjects(CAM::CAMSetup::ViewMachineTool, objectsToBeMoved1, tool, CAM::CAMSetup::PasteInside);
}
UG/NX二次开发 换刀
最新推荐文章于 2024-07-25 12:39:48 发布