admin 发表于 2013-11-11 13:59:29

UG NX二次开发中常用的ufun API函数大集合,熟悉这些就够了

UG NX二次开发中常用的ufun API函数大集合,熟悉这些就够了

这些函数是经常使用的,可以作为参考!

(1)和Part有关
UF_PART_open
UF_PART_close_all
UF_PART_save_all
UF_PART_ask_part_name
UF_PART_ask_part_tag
UF_PART_ask_units
UF_PART_ask_display_part
UF_PART_set_display_part
UF_PART_is_modified

(2)和菜单有关
uc1601 — Display a Simple Message on the Cue line
UF_UI_set_status
UF_UI_set_prompt
uc1603— Display Selection Menu
uc1605— Multiple Selection Menu
(3)和选择显示有关
UF_UI_set_select_mask
UF_UI_select_with_class_dialog
UF_UI_select_with_single_dialog
UF_UI_set_sel_mask
UF_DISP_set_highlight
UF_DISP_set_display
UF_DISP_add_item_to_display
UF_DISP_regenerate_display
UF_DISP_refresh
(4)和装配有关
UF_ASSEM_create_component_part
UF_ASSEM_create_mc_array
UF_ASSEM_ask_work_part
UF_ASSEM_ask_component_data
UF_ASSEM_ask_mc_array_data
UF_ASSEM_ask_assem_options
UF_ASSEM_is_occurrence
UF_ASSEM_is_part_occurrence
UF_ASSEM_ask_prototype_of_occ
UF_ASSEM_ask_inst_of_part_occ
UF_ASSEM_ask_parent_of_instance
UF_ASSEM_ask_child_of_instance
UF_ASSEM_remove_instance
UF_ASSEM_ask_occs_of_entity
UF_ASSEM_ask_occs_of_part
UF_ASSEM_set_assem_options
UF_ASSEM_cycle_ents_in_part_occ
(5)和图层有关
UF_LAYER_set_status
UF_LAYER_ask_status
UF_LAYER_cycle_by_layer
(6)和对象相关
   UF_OBJ_delete_object
UF_OBJ_ask_status
UF_OBJ_set_def_cre_color
UF_OBJ_set_cre_color
UF_OBJ_ask_type_and_subtype
(7)和表达式相关
UF_MODL_create_exp
UF_MODL_ask_exp
UF_MODL_edit_exp
UF_MODL_delete_exp
UF_MODL_eval_exp
UF_MODL_export_exp
UF_MODL_import_exp
UF_MODL_rename_exp
UF_MODL_create_exp_tag
UF_MODL_ask_exp_tag_value
UF_MODL_delete_exp_tag
UF_MODL_ask_exp_tag_string
UF_MODL_dissect_exp_string
UF_MODL_update
(8)和模型链表相关
UF_MODL_create_list
UF_MODL_put_list_item
UF_MODL_ask_list_count
UF_MODL_ask_list_item
UF_MODL_ask_list_item
UF_MODL_delete_list
UF_MODL_delete_list_item
(9)和创建模型相关
UF_MODL_create_block1
UF_MODL_create_blend
UF_MODL_create_cyl1
UF_MODL_create_hollow
UF_MODL_create_linear_iset
UF_MODL_create_rect_pocket
UF_MODL_create_rect_slot
UF_MODL_create_simple_hole
UF_MODL_operations
UF_MODL_active_part
(10)和模型查询相关
UF_MODL_ask_feat_body
UF_MODL_ask_body_type
UF_MODL_ask_body_faces
UF_MODL_ask_body_edges
UF_MODL_ask_edge_body
UF_MODL_ask_edge_faces
UF_MODL_ask_edge_type
UF_MODL_ask_edge_verts
UF_MODL_ask_face_body
UF_MODL_ask_face_edges
UF_MODL_ask_face_data
UF_MODL_ask_feat_faces
UF_MODL_ask_block_parms
UF_MODL_ask_minimum_dist
UF_MODL_ask_simple_hole_parms
(11)和对象名称相关
UF_OBJ_set_name
UF_OBJ_ask_name
UF_OBJ_delete_name
UF_OBJ_cycle_by_name
(12)和制图尺寸相关
UF_DRF_ask_preferences
UF_DRF_set_preferences
UF_DRF_create_horizontal_dim
UF_DRF_init_object_structure
UF_DRF_create_vertical_dim
UF_DRF_create_note
UF_DRF_create_label
UF_VIEW_ask_tag_of_view_name
UF_VIEW_expand_view
UF_VIEW_is_expanded
UF_VIEW_unexpand_work_view
(13)和视图相关
uc6476 //Set Drawing State
uc6477 //Retrieve Drawing State
uc6478 //Create Drawing
uc6479 //Read Drawing Size
uc6480 //Set Drawing Size
UF_DRAW_ask_drawing_info
UF_DRAW_set_drawing_info
UF_DRAW_import_view
uc6481 //Add View to Drawing
uc6482 //Remove View from Drawing
uc6483 //Read View Reference Point on Drawing
uc6484 //Set View Reference Point on Drawing
uc6485 //Read View Borders on Current Drawing
uc6486 //Set View Borders on Current Drawing
UF_DRAW_define_view_manual_rec t
UF_DRAW_update_one_view
uc6492 //Read Current Drawing Name
UF_DRAW_ask_current_drawing
uc6496 //Rename Drawing
uc6495 //Delete Drawing
uc6499 //Cycle Views in Drawing
(14)和属性相关
UF_ATTR_ask_part_attribute
UF_ATTR_assign
UF_ATTR_ask_part_attrs
UF_ATTR_ask_part_attrs_in_fi le
UF_ATTR_read_value
UF_ATTR_cycle
UF_ATTR_delete
UF_ATTR_delete_all


东沟恋君 发表于 2013-11-14 13:14:00

楼主是个有心人,辛苦啦,谢谢.

潜行者 发表于 2013-11-28 15:33:55

受教了,呵呵

sl2651668521 发表于 2014-3-5 16:23:46

谢谢学习了

蝎子 发表于 2014-3-16 23:12:59

能否请教一个问题,我想调用测量对话框,不知道他的函数是什么样的

蝎子 发表于 2014-3-16 23:13:31

测量距离

doushabao 发表于 2015-12-9 21:26:29

谢谢了,朋友

okhaola 发表于 2015-12-30 19:37:47

你们的API在哪里下载的啊,我怎么找不到?
页: [1]
查看完整版本: UG NX二次开发中常用的ufun API函数大集合,熟悉这些就够了