NX9+VS2012

     #include <uf.h>
#include <uf_curve.h>
#include <uf_modl.h> UF_initialize(); //圆心点
double p1[] = {0.0, 0.0, 0.0};
tag_t CenterTag = NULL_TAG;
UF_CURVE_create_point(p1, &CenterTag); //辅助点
double HelpPoint[] = {100.0, 0.0, 0.0};
tag_t HelpPointTag = NULL_TAG;
UF_CURVE_create_point(HelpPoint, &HelpPointTag); //类型
UF_CURVE_limit_t limit[];
UF_CURVE_limit_p_t pLimit[] = { &limit[], &limit[] };
limit[].limit_type = UF_CURVE_limit_value;
limit[].value = ;//按值
limit[].limit_type = UF_CURVE_limit_value;
limit[].value = ;//按值 //创建XZ基准平面,用来放圆弧
double PlanePoint[] = { 0.0, 0.0, 0.0 };
double Direction1[] = { 1.0, 0.0, 0.0 };
tag_t DplaneTag = NULL_TAG;
UF_MODL_create_fixed_dplane(PlanePoint, Direction1, &DplaneTag); tag_t ArcTag = NULL_TAG;
UF_CURVE_create_arc_center_radius(CenterTag, , HelpPointTag, pLimit, DplaneTag, FALSE, &ArcTag); //创建直线
UF_CURVE_line_t LineCoods1;
LineCoods1.start_point[] = 0.0;
LineCoods1.start_point[] = 0.0;
LineCoods1.start_point[] = 0.0;
LineCoods1.end_point[] = 0.0;
LineCoods1.end_point[] = 100.0;
LineCoods1.end_point[] = 0.0;
tag_t Line1Tag = NULL_TAG;
UF_CURVE_create_line(&LineCoods1, &Line1Tag); UF_CURVE_line_t LineCoods2;
LineCoods2.start_point[] = 0.0;
LineCoods2.start_point[] = 0.0;
LineCoods2.start_point[] = 0.0;
LineCoods2.end_point[] = 0.0;
LineCoods2.end_point[] = 0.0;
LineCoods2.end_point[] = -100.0;
tag_t Line2Tag = NULL_TAG;
UF_CURVE_create_line(&LineCoods2, &Line2Tag); //创建旋转
uf_list_p_t EdgeLits;
UF_MODL_create_list(&EdgeLits);//创建链表
UF_MODL_put_list_item(EdgeLits, Line1Tag);//Tag添加到链表
UF_MODL_put_list_item(EdgeLits, Line2Tag);
UF_MODL_put_list_item(EdgeLits, ArcTag); char *Limit[] = { "0.0", "360.0" };
double Point1[] = { 0.0, 0.0, 0.0 };
double Direction[] = { 0.0, 0.0, 1.0 };
UF_FEATURE_SIGN Sign = UF_NULLSIGN;
uf_list_p_t FeatureList;
UF_MODL_create_revolved(EdgeLits, Limit, Point1, Direction, Sign, &FeatureList); UF_MODL_delete_list(&FeatureList);//删除链表
UF_MODL_delete_list(&EdgeLits); UF_terminate();

NX二次开发-创建旋转UF_MODL_create_revolved的更多相关文章

  1. NX二次开发-创建(临时)坐标系

    函数:UF_CSYS_create_csys() . UF_CSYS_create_temp_csys() 函数说明:创建坐标系 .创建临时坐标系 用法: #include <uf.h> ...

  2. NX二次开发-创建NX9 NXOpenCPP Wizard开发向导模板

    这篇文章,我在CSDN,在唐工论坛都发过.http://www.nxopen.cn/forum.php?mod=viewthread&tid=2039&highlight=NX9 博客 ...

  3. NX二次开发-创建功能区工具栏UF_UI_create_ribbon

    NX9+VS2012 1.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\ug_main.men 找到装配和PMI,在中间加上一段 TOGGLE_BUTTON ...

  4. NX二次开发-创建经典工具栏UF_UI_create_toolbar

    NX9+VS2012 1.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\ug_main.men 找到装配和PMI,在中间加上一段 TOGGLE_BUTTON ...

  5. NX二次开发-创建一个3 x 3矩阵UF_CSYS_create_matrix

    1 NX9+VS2012 #include <uf.h> #include <uf_csys.h> #include <uf_mtx.h> UF_initializ ...

  6. NX二次开发-创建CSYS坐标系UF_CSYS_create_csys

    NX9+VS2012 #include <uf.h> #include <uf_csys.h> #include <uf_mtx.h> UF_initialize( ...

  7. NX二次开发-创建临时坐标系UF_CSYS_create_temp_csys

    NX9+VS2012 #include <uf.h> #include <uf_csys.h> #include <uf_mtx.h> UF_initialize( ...

  8. NX二次开发-创建直线UF_CURVE_create_line与NXOpen->CreateLine

    NX11+VS2013 #include <uf.h> #include <uf_curve.h> #include <NXOpen/CurveCollection.hx ...

  9. NX二次开发-创建直线(起点-向量方向-长度)UF_CURVE_create_line

    NX9+VS2012 #include <uf.h> #include <uf_curve.h> #include <uf_csys.h> #include < ...

随机推荐

  1. jquery实现表格复选框---多行选择问题(php变量)

    1.html多选框标签行 表头的多选框,用于全选,取消全选 <th><input id='allSelected' type="checkbox">< ...

  2. spring boot 四大组件之Starter

    1.概述 依赖管理是任何复杂项目的关键方面.手动完成这些操作并不理想; 你花在它上面的时间越多,你在项目的其他重要方面所花费的时间就越少. 构建Spring Boot启动器是为了解决这个问题.Star ...

  3. Delphi CoCreateGuid()函数 获取GUID

    Globally Unique Identifier(全球唯一标识符) 也称作 UUID(Universally Unique IDentifier) GUID/UUID是通过特定算法产生的一个二进制 ...

  4. QT之QCustomPlot(二)

    怎么设置X,Y轴位置 Manages a single axis inside a QCustomPlot. Usually doesn't need to be instantiated exter ...

  5. Shiro学习(8)拦截器机制

    8.1 拦截器介绍 Shiro使用了与Servlet一样的Filter接口进行扩展:所以如果对Filter不熟悉可以参考<Servlet3.1规范>http://www.iteye.com ...

  6. springboot设置静态资源缓存一年

    由于本人所在项目组,所用的项目是前后端分离的,前端是React 的SPA,每次打包都会新版本的静态文件. 然而,在有些时候,这些静态资源是不变的,故可以将资源缓存至用户本地,提升性能. 写法如下,需要 ...

  7. noip2002 普及组 过河卒

    题目描述 棋盘上A点有一个过河卒,需要走到目标B点.卒行走的规则:可以向下.或者向右.同时在棋盘上C点有一个对方的马,该马所在的点和所有跳跃一步可达的点称为对方马的控制点.因此称之为"马拦过 ...

  8. NX二次开发-Block UI C++界面关于 在Block UI中UF_initialize();和UF_terminate();的使用

    关于 在Block UI中UF_initialize();和UF_terminate();的使用 用Block UI作NX二次开发的时候,不需要在使用UFUN函数的时候加UF_initialize() ...

  9. Http协议中get和post的区别 转载https://www.cnblogs.com/lexiaofei/p/http.html

    get(默认值)是通过URL传递表单值,数据追加在action属性后面. post传递的表单值是隐藏到http报文体中,url中看不到. get是通过url传递表单值,post通过url看不到表单域的 ...

  10. MySQL数据库(一)—— 数据库介绍、MySQL安装、基础SQL语句

    数据库介绍.MySQL安装.基础SQL语句 一.数据库介绍 1.什么是数据库 数据库即存储数据的仓库 2.为什么要用数据库 (1)用文件存储是和硬盘打交道,是IO操作,所以有效率问题 (2)管理不方便 ...