算服了你了
#include <uf_assem.h>
#include <uf_curve.h>
#include <uf_obj.h>
#include <uf_ui_ugopen.h>
tag_t point=NULL_TAG;
double pp[3];
tag_t part_tag;
char export[50];
int pp_number = 0;
part_tag = UF_ASSEM_ask_work_part();
UF_UI_open_listing_window();
do
{
UF_OBJ_cycle_objs_in_part(part_tag,2,&point);
if(point == NULL_TAG) break;
pp_number++;
UF_CURVE_ask_point_data(point,pp);
sprintf(export,"点%d的坐标:%.4f,%.4f,%.4f\n",pp_number,pp[0],pp[1],pp[2]);
UF_UI_write_listing_window(export);
}while(point); |