larri86
Automotive
- Dec 11, 2012
- 3
Hi everyone,
I am trying to get closer to NX and all it's features and I'm having some troubles with this particular UDF. I have debug all errors I found but now I'm stuck. I hope you can help me. I'll try to explain the model:
I have a model in which I have an extrude which supression status is driven by the expresion 'if (e==0) 0 else 1'. Next step is an edge blend that is also controlled by 'if (e==0 | rf==0) 0 else 1' next operation are again an extrude controlled its supression by 'if (e!=0) 0 else 1' and a edge blend controlled by 'if (e!=0 | rf==0) 0 else 1'
To test and debug it both extrude have the same profile done around a cylinder with circular pattern.
Changing values of 'e' and 'rk' works just fine in the prt file.
I created an UDF with this model and it continued working ok if the values of 'e==0' and 'rk!=0' when I insert the UDF. Once I have the UDF created I can set 'e' or 'rk' to any value and it will continue working properly, supressing features as intended.
Only when creating the UDF and the second extrusion is evaluated as 0 (e!=0) fails evaluating blend's operation and I get an "Unable to paste" error. What is the problem here? How can I debug it?
Thank you in advance and Merry Christmas!
Larry
Learning Engineer (NX 7.5)
I am trying to get closer to NX and all it's features and I'm having some troubles with this particular UDF. I have debug all errors I found but now I'm stuck. I hope you can help me. I'll try to explain the model:
I have a model in which I have an extrude which supression status is driven by the expresion 'if (e==0) 0 else 1'. Next step is an edge blend that is also controlled by 'if (e==0 | rf==0) 0 else 1' next operation are again an extrude controlled its supression by 'if (e!=0) 0 else 1' and a edge blend controlled by 'if (e!=0 | rf==0) 0 else 1'
To test and debug it both extrude have the same profile done around a cylinder with circular pattern.
Changing values of 'e' and 'rk' works just fine in the prt file.
I created an UDF with this model and it continued working ok if the values of 'e==0' and 'rk!=0' when I insert the UDF. Once I have the UDF created I can set 'e' or 'rk' to any value and it will continue working properly, supressing features as intended.
Only when creating the UDF and the second extrusion is evaluated as 0 (e!=0) fails evaluating blend's operation and I get an "Unable to paste" error. What is the problem here? How can I debug it?
Thank you in advance and Merry Christmas!
Larry
Learning Engineer (NX 7.5)