ICode9

精准搜索请尝试: 精确搜索
  • NX二次开发 UF创建文本 UF创建带箭头文本2021-04-24 11:36:46

    VS2010 NX8.5   #include <uf_drf.h>   void UFCreateTextNote(Point3d TextPoint1,NXString NXStext1); //UF创建文本注释 void UFCreateArrowTextNote(Face *ArrowFace,Point3d TextPoint1,NXString NXStext1); //UF创建带箭头文本注释   void HoleTable::UFCreateTextNote(P

  • NX二次开发UF获取NX主要版本2021-04-14 14:33:42

    VS2010 NX8.5   #include <uf.h> #include <NXOpen/ListingWindow.hxx>     UF_initialize(); theSession->ListingWindow()->Open(); char* releaseNXRev;//定义字符串 UF_get_release(&releaseNXRev);//获取NX主要版本 theSession->ListingWindow()->Wr

  • NXOpen遍历尺寸 UF获取尺寸值2021-04-14 11:34:32

    VS2010  NX8.5   #include <NXOpen/Annotations_Dimension.hxx>#include <NXOpen/Annotations_DimensionCollection.hxx>#include <NXOpen/Annotations.hxx>#include <NXOpen/Drawings_DraftingView.hxx>#include <NXOpen/Drawings_DraftingViewCo

  • NXOpen 求点到边的垂线并结合UF求起始点终点交点2021-04-13 08:01:38

    VS2010 NX8.5   //创建垂线 Features::AssociativeLine *nullFeatures_AssociativeLine(NULL); Features::AssociativeLineBuilder *associativeLineBuilder1; associativeLineBuilder1 = workPart->BaseFeatures()->CreateAssociativeLineBuilder(nullFeatures_Associ

  • 【NX二次开发】属性操作相关函数的使用方法2021-04-06 11:36:06

    内容包括:1.属性创建2.判断属性是否存在3.读取属性值4.时间属性转换成字符串5.统计属性的数量6.删除指定属性7.删除全部属性效果:      源码: #include <stdlib.h> #include <stdio.h> #include <uf.h> #include <uf_attr.h> #include <uf_cfi.h> #include <uf_curve.h> #defin

  • NXOpen 利用包容盒一键生成塑胶模开框假体2021-04-01 18:01:09

    VS 2010  NX8.5 利用UF的UF_MODL_ask_bounding_box_exact函数得出边界,创建方体、避空槽或倒圆。和UI界面结合按需求更改参数,实时变更和预览。

  • NX 二次开发找柱面整圆边并输出对应的相关信息2021-03-13 14:34:48

    C++     //选择过滤 Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific; std::vector<Selection::MaskTriple> maskArray(1); maskArray[0] = Selection::MaskTriple( UF_solid_type, UF_all_subtype, UF_UI_SEL_FEATURE_CYLINDRI

  • NX二次开发-UFUN tag转handle UF_TAG_ask_handle_of_tag2021-03-11 23:01:06

    这两个函数对我来说还是印象比较深刻的,因为当初刚来上海找工作的时候,在那家公司做的项目就用到了tag转handle。 但是无奈我当时基础太差,虽然项目没做好,但是这两个函数却印象深刻,感觉一辈子都不会忘记。 关于tag和handle,我通俗的讲, tag就是临时对象标识,关了prt重新打开,tag就会变.

  • django1.8使用表单上传文件2021-03-08 21:53:56

    在django中我们可以采用Form类来处理表单,通过实例化处理和在模板中渲染,就可以轻松完成表单的需求,采用django的表单处理方式,能帮我们省去很多的工作,比如验证不能为空,或者要符合某种模式的输入才有效,这些处理起来非常方便,不用自己再单独写代码去验证表单的数据正确性,所以在开发中比较

  • NX二次开发-老版本UG自动切换到制图模块::PostMessage2021-03-08 20:01:56

    这个方法是以前在QQ群里看到梅雷大神发的, 使用::PostMessage切换模块,但是不能放在BlockUI里用,切换模块后,BlockUI就自己关闭了。 NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_mb.h> #include <afx.h> UF_initialize(); int button_id = 0, module_id = 0;

  • NX CAM二次开发-UF_CAMGEOM_append_items设置切削区域2021-02-19 23:05:01

    NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_ui_ont.h> #include <uf_camgeom.h> static int select_filter_proc_fn(tag_t object, int type[3], void* user_data, UF_UI_selection_p_t select) { if (object == NULL)

  • NX CAM二次开发-UF_OPER_ask_program_group查询操作所在的程序顺序组tag2021-02-19 23:03:46

    NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_ui_ont.h> #include <uf_oper.h> #include <uf_obj.h> UF_initialize(); //获取当前加工导航器选中的对象数量和TAG int count = 0; tag_t* objects = NULL_TAG; UF_UI_ONT_ask_selected_nodes(

  • NX CAM二次开发-UF_NCMTHD_create创建加工方法2021-02-19 23:03:18

    NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_ncgroup.h> #include <uf_setup.h> #include <uf_ui_ont.h> #include <uf_obj.h> UF_initialize(); //获取当前NX的加工设置TAG tag_t setup_tag = NULL_TAG; UF_SETUP_ask_setup

  • NX CAM二次开发-UF_NCPROG_create创建程序组2021-02-19 23:01:40

    NX9+VS2012 #include <uf.h> #include <uf_setup.h> #include <uf_ncgroup.h> #include <uf_ui_ont.h> #include <uf_obj.h> #include <uf_ui.h> UF_initialize(); //获取加工设置 tag_t setup_tag = NULL_TAG; UF_SETUP_ask_setup(&se

  • NX CAM二次开发-UF_SETUP_ask_mct_root获得机床(刀具)视图的根节点2021-02-19 22:35:16

    NX9+VS2012 #include <uf.h> #include <uf_setup.h> #include <uf_ui.h> UF_initialize(); //获取加工设置 tag_t setup_tag = NULL_TAG; UF_SETUP_ask_setup(&setup_tag); if (setup_tag == NULL_TAG) { uc1601("提示:请先初始化加工环境", 1); r

  • NX CAM二次开发-UF_OPER_create用指定的操作及子操作创建一个操作2021-02-19 22:35:10

    NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_ncgroup.h> #include <uf_setup.h> #include <uf_ui_ont.h> #include <uf_obj.h> #include <uf_param.h> #include <uf_param_indices.h> #include <uf_ope

  • NX CAM二次开发-UF_UI_ONT_refresh刷新当前操作导视器2021-02-19 22:33:29

    NX9+VS2012 #include <uf.h> #include <uf_setup.h> #include <uf_ncgroup.h> #include <uf_ui_ont.h> #include <uf_obj.h> #include <uf_ui.h> UF_initialize(); //获取加工设置 tag_t setup_tag = NULL_TAG; UF_SETUP_ask_setup(&se

  • NX CAM二次开发-UF_UI_ONT_collapse_view折叠当前加工导航器中所有节点2021-02-19 22:32:37

    NX9+VS2012 #include <uf.h> #include <uf_ui_ont.h> UF_initialize(); //折叠当前加工导航器中所有节点 UF_UI_ONT_collapse_view(); UF_terminate(); Caesar卢尚宇 2020年5月2日

  • NX-二次开发UFUN在面上创建等参数曲线UF_MODL_create_isocurve2021-02-18 20:34:48

    本实例非博主原创,是从大神的视频课程中学习的。 版本: NX9+VS2012   演示:   源代码: //CreateRunnerLine // Mandatory UF Includes #include <uf.h> #include <uf_object_types.h> // Internal Includes #include <NXOpen/ListingWindow.hxx> #include <NXOpen/NXMessa

  • 实例开发-一键设置透明度工具2021-02-14 17:04:48

    本实例非博主原创,是从大神的视频课程中学习的。 版本: NX9+VS2012   演示:   源代码: //SetTranslucency // Mandatory UF Includes #include <uf.h> #include <uf_object_types.h> // Internal Includes #include <NXOpen/ListingWindow.hxx> #include <NXOpen/NXMessag

  • 实例开发-选平面快速分割实体工具2021-02-13 23:32:12

    本实例非博主原创,是从大神的视频课程中学习的。 版本: NX9+VS2012   演示:       源代码: //SplitBody // Mandatory UF Includes #include <uf.h> #include <uf_object_types.h> // Internal Includes #include <NXOpen/ListingWindow.hxx> #include <NXOpen/NXMessag

  • c#直接调用DLL里面的函数,以UF_MODL_ask_face_parm为例2021-02-10 19:02:07

    using System; using NXOpen; using NXOpen.UF; using System.Runtime.InteropServices; public class Program { // class members [DllImport("libufun.dll", EntryPoint = "UF_MODL_ask_face_parm")] public static extern int UF_MODL_a

  • 【NX二次开发】掌握拉伸的偏置方向2021-01-22 13:33:58

     结论:偏置的方向为曲线方向与拉伸方向的向量叉乘。 在UF_MODL_create_extrusion帮助中有这么一句话:Note that the offset direction is determined by the cross product of the direction vector of the first profile segment and the extrusion direc

  • 【NX二次开发】创建有界平面UF_MODL_create_bplane2021-01-22 11:01:41

    先准备几条曲线如下图所示,我们用这几条边来创建一个有界平面     源码: //有界平面 extern DllExport void ufusr(char *param, int *returnCode, int rlen) { UF_initialize(); uc1601("有界平面", 1); tag_t tagLine[6] = { 45888,46337,46215,46015,45057,45256

  • 2021-01-16 打砖块2021-01-17 18:30:36

    打砖块 记录 var hitBricks = function(grid, hits) { const h = grid.length; w = grid[0].length; const uf = new UnionFind(h * w + 1); const status = JSON.parse(JSON.stringify(grid));; for (let i = 0; i < hits.length; i++) {

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有