Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDO question

Status
Not open for further replies.

engguser

Mechanical
Joined
Apr 17, 2008
Messages
14
Location
US
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
 


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
 
Thanks HariharanB for the info. I will try that one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top