May 19, 2017 #1 iucu Mechanical Joined Jun 5, 2003 Messages 31 Location US Is this possible in Sketch ? Example : p10=2 if p3<100 and p4>2
May 19, 2017 Thread starter #2 iucu Mechanical Joined Jun 5, 2003 Messages 31 Location US and second question : validate an Input, I mean, for example p10 can take values only between 1 and 4 Upvote 0 Downvote
and second question : validate an Input, I mean, for example p10 can take values only between 1 and 4
May 19, 2017 #3 cowski Mechanical Joined Apr 23, 2000 Messages 8,227 Location US iucu said: Is this possible in Sketch ? Example : p10=2 if p3<100 and p4>2 Click to expand... 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 Upvote 0 Downvote
iucu said: Is this possible in Sketch ? Example : p10=2 if p3<100 and p4>2 Click to expand... 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
May 24, 2017 Thread starter #4 iucu Mechanical Joined Jun 5, 2003 Messages 31 Location US I can not find the syntax operators in Help NX Where is for example If syntax. Or integer of p1 Upvote 0 Downvote
Jun 13, 2017 #5 TaylorAnderson Mechanical Joined Mar 1, 2011 Messages 173 Location US 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) Upvote 0 Downvote
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)