NX二次开发 UFUN创建历史记录列表 UF_PART_create_history_list
//NX8.0+VS2010
#include <uf.h>
#include <uf_ui.h>
#include <uf_obj.h>
#include <uf_assem.h>
#include <uf_part.h>
#include <time.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
int i = 0, num_hists = 0;
char part_fspec[MAX_FSPEC_SIZE + 1] = "";
char time_buff[133] = "";
struct tm* time_ptr;
time_t displayed_time;
int vers_num, vers_time;
char* program, * user, * machine;
UF_PART_history_list_p_t history_list = NULL;
tag_t part_tag = UF_ASSEM_ask_work_part();
if (part_tag)
{//获得部件历史记录
UF_PART_create_history_list(&history_list);
UF_PART_clear_history_list