man2007
Aerospace
- Nov 6, 2007
- 283
I wrote following code to add add Annotation in drafting using ufunc, but when I call the dll file in unigraphics, it is not creating annotation.
#include <stdio.h>
#include <uf.h>
#include <uf_drf.h>
#include <uf_defs.h>
#include <string.h>
void ufusr(char *param, int *retcode, int paramLen)
{
tag_t note_obj;
int orient1=0;
static double origin1[3]={10.0,10.0,0.0};
char st[2][50];
UF_DRF_object_t object;
UF_initialize();
UF_DRF_init_object_structure(&object);
object.object_tag=note_obj;
strcpy(st[0], "a");
strcpy(st[1], "b");
UF_DRF_create_note(2,st,origin1,orient1,¬e_obj);
UF_terminate();
}
Any ideas?
#include <stdio.h>
#include <uf.h>
#include <uf_drf.h>
#include <uf_defs.h>
#include <string.h>
void ufusr(char *param, int *retcode, int paramLen)
{
tag_t note_obj;
int orient1=0;
static double origin1[3]={10.0,10.0,0.0};
char st[2][50];
UF_DRF_object_t object;
UF_initialize();
UF_DRF_init_object_structure(&object);
object.object_tag=note_obj;
strcpy(st[0], "a");
strcpy(st[1], "b");
UF_DRF_create_note(2,st,origin1,orient1,¬e_obj);
UF_terminate();
}
Any ideas?