Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-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
Joined
Nov 27, 2008
Messages
46
Location
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
 
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
 
Thank You

This is what I need
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top