12.07.2015 Views

Knowledge Advisor - catia

Knowledge Advisor - catia

Knowledge Advisor - catia

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

* Rule created by CRE 05/03/99 */if PartBody\Sketch.1\Radius.3\Radius > 45mm{LaunchMacroFromFile("Macro1.CATScript")}else/*LaunchMacroFromFile("Macro2.CATScript")*/Message("No macro launched")The Rule DictionaryThe dictionary components which are not already described in Writing Formulas are discussedbelow.Conditional Statements or KeywordsLike in many languages, the if....else...elseif statements are used to evaluatewhether a condition is true or false and,depending on the result, to specify one ormore statements to run. Usually thecondition is an expression that uses acomparison or logical operator to compareone value or parameter value with another.Statements within a condition can becombined using the and or or keywords.OperatorsOperators provided are:arithmetical operatorsand comparison operators. Note thatcomparison operators should be onlyused in conditional statements. Theycan't be used as functions as theydon't return any value.Message and Macro Functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!