e, strlen(description.owning_group_name) + 1, description.owning_group_name);
66 strcpy_s(last_modify_user_name, strlen(description.last_modifying_user_name) + 1, description.last_modifying_user_name);
67 sprintf_s(tmp_output_string, "date_created=%s\ndate_modified=%s\nobject_name=%s\nobject_type=%s\nowners_name=%s\nowning_group_name=%s\nlast_modify_user_name=%s\nobject_desc=%s\n",
68 createDate, modifyDate, objectName, objectType, ownersName, owning_group_name, last_modify_user_name, object_desc);
69 break;
70 default:
71 printf("OUTPUT:该参数 %d 未定义操作!\n", input_code);
72 break;
73 }
74 if (strlen(tmp_output_string) > 0){
75 *output_string = (char*)malloc(sizeof(tmp_output_string));
76 strcpy_s(*output_string, strlen(tmp_output_string) + 1, tmp_output_string);
77 printf("OUTPUT:\n");
78 printf("output_string : %s (%s)\n", *output_string, (input_code == 1) ? "CREATION DATE" : "MODIFICATION DATE");
79 printf("output_code : %d\n", *output_code);
80 }
81 return ITK_ok;
82 }
83
84 #ifdef __cplusplus
85 }
86 #endif
Teamcenter零组件属性截图:
工程调试运行GIF动图:
2023年03月25日 16点52分发布。转载请注明出处!!!
|