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.

help with relation to control radii

tdx99

New member
Hello all,


I am trying to makea rectangular protrusionwith rounded the cornersof equal radii into a flexible component. I want to vary the length and width and the radii.


I want to write a relation to control the radii so that it can not be greater than half of the length or width.


Example:


d1>d2, r (d3)can not be greater than d2/2


if d1< d2, r can not be greater than d1/2


and if d1=d2, than r can not be greater than either d1/2 or d2/2


My vba skills are non existant so any help with writing the relation would greatly be appreciated.


Wildfire 3


Thank you.
Edited by: tdx99
 
this should work for you


if d1>= d2
if d3 > d2/2
d3 = d2/2
endif
endif
if d2>d1
if d3>d1/2
d3=d1/2
endif
endif


this way you can still control the value of the rad but if it exceeds the max it will revert to the max value.


Regards,


Tom Peterek
Edited by: tgsp
 

Sponsor

Articles From 3DCAD World

Back
Top