修剪体功能不知道怎么操作了,哪位大神帮忙指导指导
获取UI中的选择面,不知道对不对std::vector<NXOpen::Face*> faces1(1);
NXOpen::Features::Block* block1(dynamic_cast<NXOpen::Features::Block*>(workPart->Features()->FindObject("BLOCK(1)")));
NXOpen::Face *face1(dynamic_cast<NXOpen::Face*>(block1->FindObject("FACE 1 {(50,50,100) BLOCK(1)}")));
faces1 = face1;
定义修剪体,后面就不知道怎么操作了
NXOpen::Features::TrimBody2* nullNXOpen_Features_TrimBody2(NULL);
NXOpen::Features::TrimBody2Builder* trimBody2Builder1;
trimBody2Builder1 = workPart->Features()->CreateTrimBody2Builder(nullNXOpen_Features_TrimBody2);
trimBody2Builder1->BooleanTool()->FacePlaneTool()->SetToolPlane(face1);
NXOpen::Unit* unit1(dynamic_cast<NXOpen::Unit*>(workPart->UnitCollection()->FindObject("MilliMeter")));
NXOpen::Expression* expression1;
expression1 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
页:
[1]