×
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

Logical If Statement

Logical If Statement

Logical If Statement

(OP)
Hi,


I´m trying to use a logical if statement to link arrangements in a plate modeling.
When modeling, in dimension p1, I want to have the value 5 of my square side plate if my arrangement is set to arrangement 1.
And I want the value to be 10 if my arrangement is set to arrangement 2.

Is that possible?

RE: Logical If Statement

p1=if(arrangement=1)(5)else(10)

Note that this will set p1=10 for any value other than 1.

RE: Logical If Statement

(OP)
It didn´t work here at all.

RE: Logical If Statement

I don't think there is a way to have an expression directly pull the arrangement name but using the Journal from here: http://www.eng-tips.com/viewthread.cfm?qid=337317 posted by jpetach dated 30 Jan 13 12:35 in combination with interpart references should work.

Assuming your assembly hierarchy is set up like this:
>Assembly
>>plate

You should be able to run the journal, then create the following expression in the assembly:
Name = "plate"::p1
Formula = If(Active_Arrangement = "Arrangement 1") Then (5) Else (10)

Daniel Sikes
Design Engineer
Young Touchstone
NX 8.0.3.4

RE: Logical If Statement

(OP)
I cannot run any VB codes where I work. It´s blocked by default.

RE: Logical If Statement

I apologize for my answer. Friday morning I was running on about 2 hours sleep and my brain equated "arrangement" with an expression named arrangement rather than an assembly arrangement.

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