Rob
Ansys Employee

Can you confirm you're compiling the code, ie linking to the libudf library? Also, you may want to look at the Message function rather than printf.