Reading function parameters in URCap

Hello,

I was wondering if it was possible to read the parameters that a user has inputted when calling a custom function? I set up functions via function model, but need the arguments that the user inputted for the function so that I can call an appropriate Java method. Here’s what it looks like in my InstallationNodeContribution:

image

If not, I will proceed with setting up an XMLRPC communication interface, but I would rather not.

Thanks,
Anthony

If you’re in generateScript, this code is going to run every time you press play. So why not just make a separate Java popup appear and let the user select files or whatever you’re doing there? What’s the need to have URScript be the UI? To just answer your question, the only way I’ve been able to call Java methods from URScript has been by implementing the XMLRPC server.

1 Like