Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

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

Status
Not open for further replies.

stevethb

Specifier/Regulator
Nov 27, 2008
46
0
0
DE
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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.
Back
Top