#include <uf.h>
#include <uf_drf.h>
#include <uf_obj.h>
#include <uf_part.h>
#include <uf_ui.h> UF_initialize(); //遍历所有尺寸
int type = ;
tag_t DimTag = NULL_TAG;
UF_OBJ_cycle_objs_in_part1(UF_PART_ask_display_part(), UF_dimension_type, &DimTag);//遍历所有尺寸
while (DimTag != NULL_TAG)
{
//设置尺寸的附加尺寸
int num_text = ;
UF_DRF_appended_text_t appended_text;
appended_text.location = UF_DRF_APPENDED_TEXT_BEFORE;
appended_text.num_lines =;
char* msg[] = { "", "ABC" };
appended_text.text = msg;
UF_DRF_set_appended_text(DimTag, num_text, &appended_text); UF_OBJ_cycle_objs_in_part1(UF_PART_ask_display_part(), UF_dimension_type, &DimTag);
} UF_terminate(); Caesar卢尚宇
2019年7月4日

NX二次开发-设置尺寸的附加尺寸UF_DRF_set_appended_text-LMLPHP

05-25 14:06