NX二次开发 UFUN创建角度尺寸标注 UF_DRF_create_angular_dim
//NX8.0+VS2010
#include <uf_assem.h>
#include <uf_part.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_view.h>
#include <uf_draw.h>
#include <uf_drf.h>
#include <uf_curve.h>
#include <uf_csys.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
int status = 0;
status = UF_initialize();
tag_t line1_tag, line2_tag;
UF_CURVE_line_t line_coords;
if (!status)
{
/* 创建直线*/
line_coords.start_point[0] = 90.0;
line_coords.start_point[1] = 90.0;
line_coords.start_point[2] = 0.0;
line_coords.end_point[0] = 50.0;
line_coords.end_point[1] = 50.0;
line_coords.end_point[2] = 0.0;
status = UF_CURVE_create_line(&line_coords, &line1_tag);
}
if (!status)
{
line_coords.end_