码迷,mamicode.com
首页 > 其他好文 > 详细

NX二次开发-NXOpen中Point3d类型转换成point类型

时间:2019-05-31 21:40:34      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:ssi   play   类型   div   class   spl   open   work   create   

 1     NX9+VS2012
 2     
 3     #include <NXOpen/NXObject.hxx>
 4     #include <NXOpen/Part.hxx>
 5     #include <NXOpen/PartCollection.hxx>
 6     #include <NXOpen/Point.hxx>
 7     #include <NXOpen/PointCollection.hxx>
 8 
 9     NXOpen::Session *theSession = NXOpen::Session::GetSession();
10     NXOpen::Part *workPart(theSession->Parts()->Work());
11     NXOpen::Part *displayPart(theSession->Parts()->Display());
12 
13     NXOpen::Point3d Point1XYZ(0,0,0);
14     NXOpen::Point *Point1 = workPart->Points()->CreatePoint(Point1XYZ);
15         
16     NXOpen::Point3d Point2XYZ(100,100,100);
17     NXOpen::Point *Point2 = workPart->Points()->CreatePoint(Point2XYZ);

 

NX二次开发-NXOpen中Point3d类型转换成point类型

标签:ssi   play   类型   div   class   spl   open   work   create   

原文地址:https://www.cnblogs.com/nxopen2018/p/10957451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!