UDO question
UDO question
(OP)
Hi,
I am new to ufunc and has written a test program for testing UDOs. Here is the script:
UF_UDOBJ_create_class("Test UDO", "this is a test udo", &class_id);
UF_UDOBJ_create_udo(class_id, &udo_tag);
if (udo_tag != NULL_TAG)
{
UF_UDOBJ_add_doubles(udo_tag, 3, threeargs);
UF_UDOBJ_ask_udo_data(udo_tag, &all_udo_data);
UF_UDOBJ_free_udo_data(&all_udo_data);
}
I understand that the UDO is created by the above program and is a saved to the database by saving the part file. How do I retrieve the saved UDO?
Thanks in Advance
Chari
I am new to ufunc and has written a test program for testing UDOs. Here is the script:
UF_UDOBJ_create_class("Test UDO", "this is a test udo", &class_id);
UF_UDOBJ_create_udo(class_id, &udo_tag);
if (udo_tag != NULL_TAG)
{
UF_UDOBJ_add_doubles(udo_tag, 3, threeargs);
UF_UDOBJ_ask_udo_data(udo_tag, &all_udo_data);
UF_UDOBJ_free_udo_data(&all_udo_data);
}
I understand that the UDO is created by the above program and is a saved to the database by saving the part file. How do I retrieve the saved UDO?
Thanks in Advance
Chari





RE: UDO question
hi,
Firstly you have to have your current code with the ufsta entry point and put the executable in the startup folder...
Then in your ufusr application in which you would like to use...cycle with the classid, retrieve it and use...i think you have a better sample in the Open reference page for uf_udobj.h
HariharanB
RE: UDO question