求助
求哪位大神帮忙解决一下,在创建圆锥时,通过选择点创建不起作用,创建的圆锥始终在坐标系原点位置,哪块出错了?????以下是代码 Part *workPart(theSession->Parts()->Work());Part *displayPart(theSession->Parts()->Display());
Features::Cone *nullNXOpen_Features_Cone(NULL);
Features::ConeBuilder *coneBuilder;
coneBuilder = workPart->Features()->CreateConeBuilder(nullNXOpen_Features_Cone);
coneBuilder->TopDiameter()->SetValue(expressionTD->Value());
coneBuilder->BaseDiameter()->SetValue(expressionBD->Value());
coneBuilder->Height()->SetValue(expressionH->Value());
std::vector <TaggedObject *> selectedObjectes=axis0->GetSelectedObjects();
Axis *axis1=dynamic_cast<Axis *>(selectedObjectes);
coneBuilder->SetAxis(axis1);
NXObject *nxbbj;
nxbbj=coneBuilder->CommitFeature();
coneBuilder->Destroy();
NX 二次开发的 为什么发到这里来了! 你录制JA的时候 把你说的那个点特殊指定下看是那个方法决定的,加入进来 就行了
页:
[1]