Hi Johannes,
Yes, the OC file needs to be loaded, compiled and linked, for the function to be callable from script - OAExecute just executes script comamnds (which can be an OC function name).
You could add the function to your system branch in code builder so that it gets loaded and compiled automatically for every sessions.
As for EXE and UFF paths:
string strEXEPath = GetAppPath(TRUE);
string strUFFPath = GetAppPath();
printf("EXE path: %s\n", strEXEPath);
printf("UFF path: %s\n", strUFFPath);
Easwar
OriginLab