点击查看详细介绍

UG Open API 中怎么获得一个已存在零件的tag

一介狂生 20年前 17868 3

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


已经建好一个零件模型,然后打开文件,怎么得到该零件的tag啊

0

最新回复 (3)
  • pzytony 20年前
    1

    UF_PART_ask_part_tag

    Returns the part tag associated with the part of the specified name.
    The full path name is not required.

  • 一介狂生 20年前
    2

    版主,我意思是要得到文件中某一对象(比如一个曲面)的tag,不知怎么解决

  • pzytony 20年前
    3

    你开始没有讲清楚!

    获得对象有两种方法,
    一种是用鼠标在界面上选择:
    UF_UI_select_with_class_dialog
    UF_UI_select_with_single_dialog

    另一种是遍历:
    UF_LAYER_cycle_by_layer
    UF_OBJ_cycle_all
    UF_OBJ_cycle_by_name
    UF_OBJ_cycle_by_name_and_type
    UF_OBJ_cycle_objs_in_part

请登录后发表新帖