int response=0;//返回用户操作类型,点了哪一种返回取消或者确定tag_t objtag=NULL_TAG;//输出选择对象tag;double cursor[ 3 ];//输出光标位置tag_t view_tag=NULL_TAG;//输出视图tag;UF_UI_select_with_single_dialog("请选择一个对象","获取对象类型",UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY,NULL,NULL,&response,&objtag,cursor,&view_tag);if (objtag!=NULL){int type=0;int subtype=0;UF_OBJ_ask_type_and_subtype(objtag,&type,&subtype);char msg[256];sprintf_s(msg,"Type:%d\nSubtype:%d",type,subtype);UF_UI_open_listing_window();UF_UI_write_listing_window(msg);UF_DISP_set_highlight(objtag,0);}