NX二次开发 UFUN正交尺寸标注 UF_DRF_create_perpendicular_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;
static double point[3] = { 2.0, 11.0, 0.0 };
static double origin[3] = { 4.0, 13.0, 0.0 };
static char dimtxt[15 + 1] = " PERPENDICULAR ";
static char apptxt[3][132 + 1] = { "APPENDED TEXT",
"APP TXT LINE 2",
"APP TXT LINE 3" };
char stat_msg[133];
tag_t point_tag, line_tag, dimension_tag;
UF_CURVE_line_t line_coords;
UF_DRF_object_t object1, object2;
UF_DRF_text_t drf_