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 on Pro/Program

vishnushankar

New member
I need to suppress or resume a feature using this option but it does not run.



There are three parameters "LENGTH" , "WIDTH" (they are integers) and "RESULT" (is an yes/no).



The logic required is:



IF LENGTH>500 OR IF WIDTH>120

RESULT=YES

ELSE

RESULT=NO

END IF



The above doesn't work, Pro/E returns an error .



I have also tried the following:



IF LENGTH>500

IF WIDTH>120


RESULT=YES


ELSE


RESULT=NO


END IF

END IF



Even that doesn't work.



What I basically require is if either the "LENGTH" or "WIDTH" is
greater than a certain value then the "RESULT" parameter needs to be
true. As I will be subsequently using this to through an text which
tells that the design criterion is Failed.



Regards,

Vishnu
 
Vishnu,


Here is a list of the logical and inequality Operators used in Pro/E Relations:
<UL>
<LI>logical comparison: & (and), | (or), ! (not)</LI>
<LI>logical equality: ==</LI>
<LI>inequalities: != (not equal), < (greater than), > (less than), <= (greater than or equal), >= (less than or equal)</LI>[/list]


so, your statement should be:


LENGTH>500|WIDTH>120


good luck!


Best regards,


Matthew Ian Loew
Edited by: Mloew
 
Hi Matthew,


The option which you have suggested


LENGTH>500|WIDTH>120


works perfectly.


Thanks a ton for the help.
smiley20.gif



Best regards


Vishnu
 

Sponsor

Back
Top