cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to get? Toolkit ProArgument** outputs sent to Jlink Application

CC05
3-Visitor

How to get? Toolkit ProArgument** outputs sent to Jlink Application

Hello, I am having difficulty creating and returning ProArgument** outputs from my toolkit application to my JLink application. Am I correct in assuming this is a ProArray of ProArguments and that it is returned by my PRO_TK_DLL_EXPORT toolkit function? If so, any tips on how to set the output array values so that they are reutrned to JLink?

 

In JLink :

//execute dll
FunctionReturn creoToolkitReturnedValue = creoToolkitDLL.ExecuteFunction("jds240LinsestockParamGet", arguments);

//return stuff
int returnValue = creoToolkitReturnedValue.GetFunctionReturn();
Arguments returnedArguments = creoToolkitReturnedValue.GetOutputArguments();
int countOfArgs = returnedArguments.getarraysize();

 

Results from toolkit call seen in JLink:

returnValue is 0;

countOfArgs returns 0, but I have added 40+ args to outputs.

 

Thanks for any assistance.

1 REPLY 1
CC05
3-Visitor
(To:CC05)

This has been resolved. The API works as expected. On the Toolkit side, setting a value to null (no value existed) was breaking the code.

Top Tags