Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Troubles with UDF (Unable to paste error)

Status
Not open for further replies.

larri86

Automotive
Joined
Dec 11, 2012
Messages
3
Location
AT
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top