【NX二次开发】根据视图名称获取视图的矩阵
函数:uc6433 ()
函数说明:获取视图名称对应的矩阵值。视图名称分为几类:
1. 制图中的视图,右键属性可以查看名称
获取上图中的视图的矩阵:
1 double v_mtx[9] = { 1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0}; 2 uc6433("Top@1", v_mtx); //获得视图3×3矩阵
2. 3D视图中的一些视图名称:俯视图、正视图、左视图等等。
获取上图中的视图的矩阵:
1 double v_mtx[9] = { 1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0}; 2 uc6433("Trimetric", v_mtx); //获得视图3×3矩阵3. 自定义视图3. 自定义视图
利用这个函数
3. 自定义视图
获取上图中的视图的矩阵:
1 double v_mtx[9] = { 1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0}; 2 uc6433("王牌飞行员_里海", v_mtx); //获得视图3×3矩阵