×
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

How to set up a value of an angle dependent on different value

How to set up a value of an angle dependent on different value

How to set up a value of an angle dependent on different value

(OP)
I have an assembly with two parts. In one part there is a point. In Expressions I have p1143_x = 5   p1144_y  = 10   p1145_y = 15

In another part ( in the same assembly ) I have two curves and an angle between those curves is for example p1200=20

How to set up a value of an angle ( p1200 ) dependent on for example this Expression - p1143_x

What I want is to set up p1200 like this

if p1143_x > 0 then set up p1200 = 20
if p1143_x < 0 then set up p1200 = 30

Regards

RE: How to set up a value of an angle dependent on different value

Steve,

For "part_a" in this example the part name is 001127/A (managed mode). In unmanaged mode omit the /A revision.


The formula for p1200 can be written as

if ("001127/A"::p1143_x < 0) 30 else 20

And the "what if p1143_x is zero" possibility could also be handled by changing the  < to <=

HTH, Joe

RE: How to set up a value of an angle dependent on different value

(OP)
Thank You

This is what I need

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