Design World Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCAD Store | 3DCAD Models | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive






 




Go Back   3DCADForums > CAD Communities > UG/NX Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 13th, 2009, 11:14 AM
chouvue chouvue is offline
Junior Member
 
Join Date: Jan 2009
Location: Seattle
Posts: 1
Default NX4 - Expressions, if statement

in NX4, is it possible to have embedded if statements?

I want an expression for the following scenerio:

**in pseudo code**

if
user_input = A
then
Diameter = 1.0"
if
user_input = B
then
Diameter = 2.0"
if
user_input = C
then
Diameter = 3.0"

****
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


  #2 (permalink)  
Old November 13th, 2009, 05:33 AM
Babu7 Babu7 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Default

Hi,

Define a expression name user_input & expression as 1 (or) 2 (or) 3.

Now, define the diameter expression name as diameter & expression as
if(user_input==1)1.0 else if(user_input==2)2.0 else 3.0.

It works.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 12:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0