Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX9 - Sketch - Expressions with Logical

Status
Not open for further replies.

iucu

Mechanical
Jun 5, 2003
31
Is this possible in Sketch ?
Example : p10=2 if p3<100 and p4>2
 
Replies continue below

Recommended for you

and second question : validate an Input, I mean, for example p10 can take values only between 1 and 4
 
iucu said:
Is this possible in Sketch ?
Example : p10=2 if p3<100 and p4>2

In this case, the formula for p10 would be:
Code:
if(p3<100 && p4>2)(2)else(0)
Supply your own value for the "else" case.

Search for "expressions syntax operators" in the help for a full list.

www.nxjournaling.com
 
I can not find the syntax operators in Help NX
Where is for example If syntax.
Or integer of p1
 
iucu:

The Expressions section in the NX Docs is here:

[URL unfurl="true"]https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help#uid:index_modeling:expressions_exp_ov[/url]

There are links on the right to a bunch of good sub-topics, including Conditional Expressions:

[URL unfurl="true"]https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help#uid:index_modeling:expressions_exp_ov:expressions_exp_syntax_conditional[/url]

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor