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 LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relations

  • Thread starter Thread starter cklem
  • Start date Start date
C

cklem

Guest
I am trying to right some relations such that if a parameter is an odd number then dim d1=5.5 and if that same parameter is an even number then d1=11. Can anyone tell me what I need to enter into the relations box to get this to work?


Any help is much appreciated.
 
that's a simple one!

if num/2 == ceil(num/2)
d0=11
else
d0 = 5.5
endif

where num is your parameter
 
Thanks!!!


I figured it was pretty easy. I just haven't worked with relations enough to know a lot them.


Thanks again!
 
I love doing that stuff, snd Pro/E does it so well!
(but for you Solidworks kids: "don't try this at home!)
smiley17.gif
 

Part and Inventory Search

Sponsor

Back
Top