ICode9

精准搜索请尝试: 精确搜索
  • OPNEC函数 UF_bound创建边界的信息(UF_BOUND_ask_boundary_data)2020-01-09 14:00:56

    1 void printf_msg(tag_t bound_tag) 2 { 3 tag_t boundary_tag=bound_tag; 4 UF_BOUND_all_data_t boundary_data; 5 UF_BOUND_ask_boundary_data (boundary_tag,&boundary_data); 6 /* 7 boundary_data.num_members;//边界的个数 8 boundary

  • UFUN函数UF_UI_ONT UF_OPER (过切检查) (UF_OPER_is_path_gouged)2019-12-30 09:55:49

    1 UF_initialize(); 2 3 int count=0; 4 tag_t *objects=NULL; 5 logical result=false; 6 //选择节点 7 UF_UI_ONT_ask_selected_nodes(&count,&objects); 8 UF_UI_open_listing_window(); 9 for (int i=0;i<count;i++) 10

  • UFUN 函数 UF_SETUP UF_NCGROUP(获取CAM模块中 程序 机床 几何 加工方法的所有名称)2019-12-27 16:53:23

    1 //此函数的功能是打印当前坐标系试图的所有坐标系名称 2 static void geom_list_name(tag_t group_tag) 3 { 4 //ask_member_list 5 int count=0; 6 tag_t *list=NULL; 7 //ask_name 8 char name[UF_OBJ_NAME_LEN+1]; 9 //ask_type_

  • UFUN函数 UF_UI_ONT UF_OPER函数(对当前程序进行操作)(UF_UI_ONT_ask_selected_nodes、UF_OPER_ask_cutter_group等)2019-12-27 14:02:48

    1 UF_initialize(); 2 //ask_selected_nodes 3 int count=0; 4 tag_t *objects=NULL; 5 //ask_name 6 char param_name[UF_OBJ_NAME_LEN+1]; 7 char cutter_name[UF_OBJ_NAME_LEN+1]; 8 char geom_name[UF_OBJ_NAME_LEN+1]; 9 char

  • UFUN函数 UF_CFI函数(uc4504,uc4540,uc4514,uc4547,UF_CFI_ask_file_exist )2019-12-14 12:03:06

    1 UF_initialize(); 2 3 //指定本地数据文件的路径 4 char file_spec[]="D://Program Files//Siemens//NX 8.0//UGII//zyTOOLS//Data//part_detal.dat"; 5 int status=0; 6 //测试文件或目录是否存在 7 UF_CFI_ask_file_exist (file_spec,&status);

  • UFUN函数 UF_ATTR函数(UF_ATTR_assign ,UF_ATTR_read_value )2019-12-14 12:01:41

    1 UF_initialize(); 2 3 tag_t object=32529; 4 char title[UF_ATTR_MAX_TITLE_LEN + 1]="零件名称"; 5 UF_ATTR_value_t value; 6 value.type=UF_ATTR_string; 7 value.value.string="块"; 8 //给对象赋属性值 9 UF_ATTR_assi

  • UFUN函数 UF_ATTR函数(UF_ATTR_cycle )2019-12-14 12:00:27

    1 UF_initialize(); 2 3 tag_t object=433890; 4 int indx=0; 5 int type=UF_ATTR_any ; 6 char title[UF_ATTR_MAX_TITLE_LEN + 1]=""; 7 UF_ATTR_value_t value; 8 //循环读取程序的属性 9 UF_ATTR_cycle(object,&indx,type,tit

  • 选择对象单开图层2019-12-12 13:04:29

    #include <uf.h> #include <uf_ui.h> #include <uf_layer.h> #include <uf_obj.h> #include <uf_object_types.h> #include <uf_defs.h> #include <libufun_exports.h> //单选对象对话框 char 提示语[] = "单选对象单开图层",对话框title[

  • 一周搞定模拟电路P3_电容_记录2019-12-06 10:52:46

    1 电容的介绍 什么是电容 它有两个电极板,和中间板所夹的介质封装而成,具有特定功能的电子器件。 电容的作用 旁路、去耦、滤波和储能的作用   2 旁路电容的作用     1)使输入电压均匀化,减少噪声对后级的影响。 例如:外界有一些交流信号干扰时,由于电容具有通交流隔直流的功能,那些

  • NX二次开发-UFUN体找边UF_MODL_ask_body_edges2019-11-13 22:06:36

    1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_ui.h> 5 #include <uf_modl.h> 6 #include <uf_curve.h> 7 8 9 UF_initialize(); 10 11 //创建圆柱 12 UF_FEATURE_SIGN Sign = UF_NULLSIGN; 13 double Origin[3] = { 0.0, 0.0, 0.0 };

  • NX二次开发-UFUN获得边的类型UF_MODL_ask_edge_type2019-11-13 22:01:28

    1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_ui.h> 5 #include <uf_modl.h> 6 #include <uf_curve.h> 7 8 9 UF_initialize(); 10 11 //创建圆柱 12 UF_FEATURE_SIGN Sign = UF_NULLSIGN; 13 double Origin[3] = { 0.0, 0.0, 0.0 };

  • UF_CURVE 曲线操作2019-11-10 14:01:48

    Open C   uf5063uf5070uf5071uf5072uf5072xuf5073uf5074uf5074xuf5075uf5080uf5081uf5082uf5083uf5083xuf5084uf5085uf5445uf5446uf5447uf5463uf5466uf5900uf5901uf5903uf5910uf5911uf5930uf5931uf5932UF_CURVE_add_faces_ocf_dataUF_CURVE_add_string_to_ocf_dataUF_CURVE_as

  • NX二次开发-通过3x3矩阵获取XYZ轴矢量2019-11-09 16:54:50

    函数:UF_CSYS_ask_wcs() 函数说明:通过3x3矩阵获取XYZ轴矢量 用法: 1 #include <uf.h> 2 #include <uf_mtx.h> 3 extern DllExport void ufusr(char *param, int *returnCode, int rlen) 4 { 5 UF_initialize(); 6 7 double douMatrixValues[9] = {1,0,0,0,1,

  • NX二次开发-获取WCS坐标系的原点坐标和矩阵标识2019-11-09 15:54:34

    函数:UF_CSYS_ask_csys_info() 函数说明:获取工作坐标系对象的标识符。 用法: #include <uf.h> #include <uf_csys.h> extern DllExport void ufusr(char *param, int *returnCode, int rlen) { UF_initialize(); //获取WCS标识 tag_t tagWCS = NULL_TAG; UF_CSYS_

  • 算法第四版1.5union-find:习题1.5.172019-09-17 20:37:07

    import edu.princeton.cs.algs4.StdIn; import edu.princeton.cs.algs4.StdOut; public class E1_5_17 { public static void main(String[]args){ int N= StdIn.readInt(); int cnt=RandomConnection.count(N); StdOut.printf("N=%8d cou

  • CCF-CSP 201512-4 送货 100分(解决RE)2019-09-16 22:59:12

      发现网上很多代码(包括一些号称100分的代码)都存在一些技术问题,致使提交之后出现RE并且只有80分,因此写了这篇笔记。   针对这些代码的问题进行了简单的分类:   1. .bss段溢出。静态分配了规模达到MxN=1e9 B≈1e3 MB的二维数用来存储邻接矩阵(题目所给出的是稠密图)。但最坑的问

  • 关于group by的感想2019-08-22 19:41:19

    SELECT O.`order_id` orderId, O.`type` businessType, datediff(now(), min(pu.should_repay_time)) days, UF.`NAME` userName, UF.`MOBILE` mobile,CL.`NAME` channelName, DATE_FORMAT(min(pu.should_repay_time_forshow) ,'%Y-%m-%d') dateTime, pu.`remain_to

  • NX二次开发-UFUN替换组件UF_ASSEM_substitute_component2019-08-12 23:00:13

    1 NX9+VS2012 2 3 4 #include <uf.h> 5 #include <uf_ui.h> 6 #include <uf_assem.h> 7 #include <uf_part.h> 8 9 10 static int select_filter_proc_fn(tag_t object, int type[3], void* user_data, UF_UI_selection_p_t select)11 {12 if

  • NX二次开发-删除经典工具栏UF_UI_remove_toolbar2019-07-15 22:57:20

    NX9+VS2012 1.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\ug_main.men 找到装配和PMI,在中间加上一段 TOGGLE_BUTTON LSYTOOLS LABEL 自定义工具箱 BITMAP cam_new_tool ACTIONS LSYTOOLS 2.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\prof

  • NX二次开发-删除功能区工具栏UF_UI_remove_ribbon2019-07-15 22:55:28

    NX9+VS2012 1.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\ug_main.men 找到装配和PMI,在中间加上一段 TOGGLE_BUTTON LSYTOOLS LABEL 自定义工具箱 BITMAP cam_new_tool ACTIONS LSYTOOLS 2.打开D:\Program Files\Siemens\NX 9.0\UGII\menus\prof

  • NX二次开发-MFC对话框获取UG界面句柄,设置MFC对话框在UG界面固定显示位置2019-07-15 12:55:56

    1 extern "C" DllExport void ufusr(char *param, int *retcod, int param_len) 2 { 3 4 if (UF_initialize()) 5 { 6 /* Failed to initialize */ 7 return; 8 } 9 // The following method shows the dialog immediately10

  • NX二次开发-设置尺寸的附加尺寸UF_DRF_set_appended_text2019-07-04 21:52:39

    1 #include <uf.h> 2 #include <uf_drf.h> 3 #include <uf_obj.h> 4 #include <uf_part.h> 5 #include <uf_ui.h> 6 7 8 UF_initialize(); 9 10 //遍历所有尺寸11 int type = 0;12 tag_t DimTag = NULL_TAG;13 UF_OBJ_cycle_objs_in_part1(UF_PART

  • NX二次开发-获取工程图尺寸的值UF_DRF_ask_dim_info2019-07-04 20:02:38

    UF_initialize();//遍历所有尺寸int type = 0;tag_t DimTag = NULL_TAG;UF_OBJ_cycle_objs_in_part1(UF_PART_ask_display_part(), UF_dimension_type, &DimTag);//遍历所有尺寸while (DimTag != NULL_TAG){ //获取尺寸的值 int dim_subtype = 0;//尺寸的类型 double dim

  • NX二次开发-UFUN单对象选择对话框UF_UI_select_with_single_dialog2019-07-01 20:04:29

    1 #include <uf.h> 2 #include <uf_ui.h> 3 4 5 static int select_filter_proc_fn(tag_t object, int type[3], void* user_data, UF_UI_selection_p_t select) 6 { 7 if (object == NULL) 8 { 9 return UF_UI_SEL_REJECT;10 }11 els

  • NX二次开发-UFUN拾取平面对话框UF_UI_specify_plane2019-07-01 20:02:33

    1 #include <uf.h> 2 #include <uf_ui.h> 3 4 5 UF_initialize(); 6 7 //拾取平面对话框 8 double orientation[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; 9 double origin[3] = { 0, 0, 0 };10 double pts[6] = { 0, 0, 0, 0, 0, 0 };11 int mode = 1, display = 0, res

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

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

ICode9版权所有