Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Relations

cklem

New member
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
 

Sponsor

Articles From 3DCAD World

Back
Top