【PLM之家-NX9.0二次开发实例视频】6 使用NXOpen C++创建圆柱
【PLM之家-NX9.0二次开发实例视频】6 使用NXOpen C++创建圆柱内容:
使用NXOpen C++创建一个圆柱体特征!
目的:
熟悉使用NXOpen C++进行特征创建的过程!
//get the session</p><p> Session *theSession = Session::GetSession();
Part *workPart(theSession->Parts()->Work());
Features::Feature *null_cylinder_feature(NULL);
Features::CylinderBuilder *cylinderBuilder;
cylinderBuilder = workPart->Features()->CreateCylinderBuilder(null_cylinder_feature);</p><p> cylinderBuilder->Height()->SetRightHandSide("200");
cylinderBuilder->Diameter()->SetRightHandSide("400");</p><p> Point3d orgin(10,10,10);
Vector3d vec(0,0,1);
cylinderBuilder->SetOrigin(orgin);
cylinderBuilder->SetDirection(vec);</p><p> cylinderBuilder->CommitFeature();
cylinderBuilder->Destroy();
PLM之家NX9.0二次开发视频教程 6 使用NXOpen CPP创建圆柱
http://player.youku.com/player.php/sid/XMzA3OTEwNDEyNA==/v.swf
谢谢楼主,辛苦了 谢谢楼主,辛苦了 谢谢分享! 求推荐一本书 感谢楼主,认真学习一下! 版主是让我感动的人,太棒了!:kiss: 顶!d=====( ̄▽ ̄*)b ~\(≧▽≦)/~ 感谢分享~~~
页:
[1]
2