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. 【leetcode】538. Convert BST to Greater Tree

    题目如下: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the orig ...

  2. 【leetcode】951. Flip Equivalent Binary Trees

    题目如下: For a binary tree T, we can define a flip operation as follows: choose any node, and swap the ...

  3. 微信小程序截取字符串

    我这里用的 str.substring(star,end)第一个参数代表开始位置,第二个参数代表结束位置的下一个位置;若参数值为负数,则将该值转为0;两个参数中,取较小值作为开始位置,截取出来的字符串 ...

  4. 学习Caffe(一)安装Caffe

    Caffe是一个深度学习框架,本文讲阐述如何在linux下安装GPU加速的caffe. 系统配置是: OS: Ubuntu14.04 CPU: i5-4690 GPU: GTX960 RAM: 8G ...

  5. 2019 wannafly winter camp day5-8代码库

    目录 day5 5H div2 Nested Tree (树形dp) 5F div2 Kropki (状压dp) 5J div1 Special Judge (计算几何) 5I div1 Sortin ...

  6. postgreSQL的主外键

    --添加主键 alter table cities add PRIMARY KEY(name); --添加外键 alter table weather add FOREIGN key(city) RE ...

  7. mongodb update操作

    //修改字段名称,把synonymsList表的name_status修改为status db.getCollection('synonymsList').update({}, {$rename : ...

  8. Centos7 安装 telnet 服务

    准备写一个 django-webtelnet(运维管理系统集成后管理网络设备),但是手边没有现成的网络设备资源可以测试,那就研究下 Centos7 下安装 telnet-server 吧. 安装 yu ...

  9. JS互相调用

    JS互相调用 例1: <html> <head> <meta charset="UTF-8"> <script type="te ...

  10. AI应用在金融领域,如何能够在商业上有所突破

    AI应用在金融领域,如何能够在商业上有所突破 如今,随着社会不断发展,技术不断进步,国内外各大金融机构已经在大数据.人工智能.区块链等新技术上有很多尝试,智能客服.智能投顾等新金融形式也早已不新鲜.那 ...