11-19-2014 07:23 AM
Hello World,
Please help. I'm trying to change the Y OFFSET to negative value in the Tracking Points tab in the turn tool. I'm updating the codes written from NX4 to NX7.5. In NX4, I used the following codes to set he Y OFFSET:
UF_PARAM_ask_double_value(list3[k],UF_PARAM_TL_Y_OFFSET,&y_offset);
offset = abs(y_offset) * (-1);
UF_PARAM_set_int_value (tool_tag, UF_PARAM_TL_Y_OFFSET_TOG, 1);
UF_PARAM_set_double_value(tool_tag,UF_PARAM_TL_Y_OFFSET,offset );
But these codes are not working in NX7.5. When I executed the .DLL, the Tracking Point tab still show the positive value but when I do an information on the tool, it shown that the value changed to negative. Does anyone else has the same problem?
Many thanks in advance.
Bibon
11-19-2014 05:46 PM
You may want to ask this in the programmer forum - some CAM API folks hang out in there:
http://community.plm.automation.siemens.com/t5/NX-Customization-and-Programming/ct-p/NXProgramming
11-19-2014 07:16 PM
Thank for the advise, I'll do that.
11-21-2014 02:59 PM
I'm short on time but try forcibly "toggling" the dialog via code (more than once). Sometimes when you change values in CAM objects via API, you have to "Force" the dialog to reflect the change. I've seen this behavior before. I may dig up some code next week if you can't get a solution.