×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

user defined expression in an UDF

user defined expression in an UDF

user defined expression in an UDF

(OP)
I'm looking for a solution in an UDF. If created an hole feature and want to defined the values with userdefined expression with if else if structures:
my new expression:
m=10
the first feature expressions
p5= if (m=3) (3.5) else if (m=4) (4.5) etc.
p6= if (m=3) (6) else if (m=4) (8) etc.
.
.
.
question:
how can I get this work in an UDF
how can I define userdefined expression not shown in the UDF wizard in / into an UDF
thx in ad

RE: user defined expression in an UDF

If u are defining m,p5,p6...in the file from which u are CREATING UDF, there should not be any problem.

You need to include "m" in the UDF creation. Either enter a range or set of values for "m".

Now coming to the value of "m",
If "m" is defined in the file in which u are CALLING udf, then udf will take this value.
If not udf will take the value of "m" that u will select while inserting UDF.

Note that UDF always PREFERS the expressions in the calling part. Suppose in calling part m=2 and while inserting if u have selected m=4 (from the udf dialog), UDF will take the value m=2. To avoid this u can lock the expression (Tools->Expressions->Lock) while u are CREATING UDF.

RE: user defined expression in an UDF

(OP)
Ok it seems to be buck in NX
user defined expression in udf's in logic functions do not work. I works only when the expression is set directly in the udf in a parameter
tip to all udf programmers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources