ProParameterWithUnitsCreate returning PRO_TK_BAD_INPUTS
Hello Community,
I am using ProParameterWithUnitsCreate, on Creo 9.0.2.0,to add a parameter to a model. However, everything I have tried to make it work has failed.
The code I am using is below:
{
...
ProParamvalueSet(&testVal, p_value, new_value_type);
err= ProParameterWithUnitsCreate(&target_item, test, &testVal, NULL, &testInit);
...
}
target_item is a valid ProModelItem, test is a valid wchar_t*, testval is a valid ProParamValue, and testInit is an unitialized ProParameter. I have followed TestParams.c file to check if I did anything wrong, but it appears I have not.
I have also looked at this article, Article - CS383949 - Creo Parametric Toolkit API ProParameterWithUnitsCreate() fails with error PRO_TK_BAD_INPUTS on specific machine (ptc.com), but it is unclear to me what registry file I am supposed to change the unicode_encoding to True on.
Does anyone have any idea as to why, with valid inputs, I am receiving the PRO_TK_BAD_INPUTS error?
Thanks,
Mark Hardebeck
