×
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

ug_askExpressionValue_

ug_askExpressionValue_

ug_askExpressionValue_

(OP)
Dear Forum.

I am trying to use ug_askExpressionValue_ to grab an expression within UG and cascade it down into a knowledge fusion class. I am using the following syntax ug_askExpressionValue_( ug_askCurrentWorkPart(), iNumberSlots ). Within the Knowledge Fusion Navigator it is return "NoValue" eventhough there is a value set within tools expression for this expression.

Any suggestions what I might be doing wrong??

Regards,

RE: ug_askExpressionValue_

EngProgrammer --

Two things...

1. The second argument for this function is a "String" datatype. As such, you'll need to have quotes around the string. (Without the quotes, KF interprets this as a "Name" datatype, which is incorrect for this function.

So, with that tweak, this syntax should work for you:

CODE --> KF

ug_askExpressionValue_( ug_askCurrentWorkPart(), "iNumberSlots" ) 

2. For the first argument, what you've done will work fine. But just so you know, an empty set of double-quotes gives the same effect here, as the function will assume the current work part unless otherwise specified. So, the syntax below should have the exact same behavior for you, but be just a touch shorter:

CODE --> KF

ug_askExpressionValue_( "", "iNumberSlots" ) 

Does that help?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

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