NX二次开发源码分享: 根据 datum plane 更新 datum 法相方向
NX二次开发源码分享: 根据 datum plane 更新 datum 法相方向这里用到了 ufun函数,通过对象获取特征,然后通过特征进行更新
tag_t featureTag = NULL_TAG;
UF_MODL_ask_object_feat(DpX->Tag(),&featureTag);
NXOpen::Features::DatumPlaneFeature *datumPlaneFeature1(dynamic_cast<NXOpen::Features::DatumPlaneFeature *>(NXObjectManager::Get(featureTag)));
NXOpen::Features::DatumPlaneBuilder *datumPlaneBuilder1;
datumPlaneBuilder1 = workPart->Features()->CreateDatumPlaneBuilder(datumPlaneFeature1);
NXOpen::Plane *plane1;
plane1 = datumPlaneBuilder1->GetPlane();
//uc1601(datumPlaneFeature1->GetFeatureName().GetUTF8Text(),1);
plane1->SetFlip(true);
plane1->Evaluate();
NXOpen::Features::Feature *feature1;
feature1 = datumPlaneBuilder1->CommitFeature();
datumPlaneBuilder1->Destroy();
页:
[1]