怡宁塑胶模具设计

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

  //获取座标UI值
  PropertyList *csysproperty = coord_system0->GetProperties();
  std::vector<TaggedObject *> getCsys = csysproperty ->GetTaggedObjectVector("SelectedObjects");
  //转换成座标系
  NXOpen::CartesianCoordinateSystem *cartesiancoords = dynamic_cast <NXOpen::CartesianCoordinateSystem *>(getCsys[0]);
  //原点
  Point3d Componentorigin = cartesiancoords->Origin();
  //获取座标矩阵
  NXMatrix *nXMatrix = cartesiancoords->Orientation() ;
  Matrix3x3 matrix1 = nXMatrix->Element();

  double origin1 [ 3 ] = { Componentorigin.X,Componentorigin.Y,Componentorigin.Z };
  double matrix [ 9 ] = {matrix1.Xx,matrix1.Xy,matrix1.Xz,matrix1.Yx,matrix1.Yy,matrix1.Yz,matrix1.Zx,matrix1.Zy,matrix1.Zz};

 

posted on 2021-03-02 15:16  怡宁塑胶模具设计  阅读(371)  评论(0编辑  收藏  举报